Telgar/Problem311

From Exalted - Unofficial Wiki
Revision as of 08:08, 5 April 2010 by Conversion script (talk) (link fix)
Jump to: navigation, search

public class Collection {

   public Collection()
   {
       ArrayList CDC = new ArrayList();
   }
   
    public void addCD()
   {
       int ye;
       int id;
       String ti;
       String ar;
       String ge;    
       
       System.out.println ("Enter year of purchase");
       ye = Keyboard.readInt();
       System.out.println ("Enter title of CD");
       ti = Keyboard.readString();
       System.out.println ("Enter arist");
       ar = Keyboard.readString();
       System.out.println ("Enter genre");
       ge = Keyboard.readString();
       System.out.println ("Enter ID number");
       id = Keyboard.readInt();
       Collection.addCD();
   }

}