Difference between revisions of "Telgar/Problem311"

From Exalted - Unofficial Wiki
Jump to: navigation, search
m (link fix)
m (link fix)
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 01:18, 6 April 2010

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();
   }

}