lValue-returning
method
Returns a value to the calling program
l
String first; String last;
l
Name name;
l
System.out.print(“Enter first name: “);
l
first = inData.readLine();
l
System.out.print(“Enter last name: “);
l
last = inData.readLine();
l
name.setName(first, last);
l