public class MethodBasics { public static void main(String[] args) { // TODO Auto-generated method stub //Parameters refers to the list of variables in a method declaration. //Arguments are the actual values that are passed in when the method is invoked. //When you invoke a method, the arguments used must match the declaration's parameters in type and order. printPhoto (10,20,false); printPhoto (20,10,false); //printPhoto(10,true,20); //error } public static void printPhoto (int width, int height, boolean inColor) { System.out.println("Width = " + width + " cm"); System.out.println("Height = " + height + " cm"); if(inColor) { System.out.println("Print is color. "); } else { System.out.println("Print is black and white. "); } } }