CSO Gaddis Java Chapter05 6ge
CSO Gaddis Java Chapter05 6ge
R5
Methods
Body
Calling code:
int value = 20;
If(isValid(value))
System.out.println("The value is within range");
else
System.out.println("The value is out of range");
©2016 Pearson Education, Ltd. 5-25
Returning a Reference to a String
Object
customerName = fullName("John", "Martin");