Title: Use parameters in a method.
Course: Java Programming (Oracle) (10055) > Section: Introducing Classes, Objects, and Methods

Using parameters in a method should include

- defining the required data type for the method to execute
- naming the past objects or primitives. For example:

39         public void setAge(int aNewAge){
40                                    age = aNewAge;
41                         }

The data type int (represented above) is found in the parentheses of the method signature. The temporary name for the parameter is aNewAge.