Developer's Daily Java Education - Test Projects
  front page | java | perl | unix | DevDirectory
   
Front Page
Java
Education
   
 



public class Main
{
  public static void main(String[] things)
  {
    User u = new User("Fred");
    try
    {
      System.out.println( "name: " + u.getName() );
    }
    catch (NoNameException e)
    {
      System.err.println( e.getMessage() );
    }

  }
}
Copyright 1998-2003 DevDaily Interactive, Inc.
All Rights Reserved.