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