Difference between revisions of "Telgar/Problem311"

From Exalted - Unofficial Wiki
Jump to: navigation, search
m
 
m (link fix)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
     public Collection()
 
     public Collection()
 
     {
 
     {
         ArrayList CDC = new ArrayList();
+
         [[ArrayList]] CDC = new [[ArrayList]]();
 
     }
 
     }
 
      
 
      

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

}