Method Parameters in Java

Method Parameters in Java
// method without parameters
    private static void plus(){ 
        System.out.println("plus method without parameters is called");
    }
// method with two integer parameters
    private static int plus(int i,int j){
        System.out.println("int plus method is called");
        return i+j;
    }
// method with two double parameters
	private static double plus(double i,double j){
        System.out.println("double plus method is called");
        return i+j;
    }
Source:ww‮w‬.lautturi.com
Created Time:2017-10-04 23:40:06  Author:lautturi