// Written by Barry Soroka
//
// A more complicated example of the style sheet.
//
import java.io.*;
////////////////////////////////////////////////////////////////////////////////
class Name
{
   private String firstName;
   private String lastName;
//------------------------------------------------------------------------------
   public Name ( String firstName, String lastName )
   {
      this.firstName = firstName;
      this.lastName = lastName;
   }
//------------------------------------------------------------------------------
//
// getInitials()
//
// If the name were "John Doe" then this method would return "JD".
//
   public String getInitials()
   {
      return firstName.substring(0,1) + lastName.substring(0,1);
   }
//------------------------------------------------------------------------------
} // end class Name
////////////////////////////////////////////////////////////////////////////////

