Bookmark Topic Watch Topic
  • New Topic

Putting an object instance into an ArrayList

 
Shamsudeen Akanbi
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Ranchers,
In this home automation application, I want to create an instance of DVDInfo for each line of data I read in from the dvdInfo.txt file. For each instance, I will parse the line of data and populate DVDInfo's three instance variables. Finally, I want to put all of the DVDInfo instances into an ArrayList. I don't know exactly how to start reading the instance variables into the ArrayList, that's even if my design is good. Thanks in advance!

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
This looks the same as your other thread? http://www.coderanch.com/t/567151/java/java/Putting-object-instance-ArrayList Is it not?

Please UseOneThreadPerQuestion.(⇐click)
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Report post to moderator
Jeff Verdegan wrote:This looks the same as your other thread? http://www.coderanch.com/t/567151/java/java/Putting-object-instance-ArrayList Is it not?

Please UseOneThreadPerQuestion.(⇐click)


Thanks Jeff for pointing it out.
Am locking this thread and lets continue the discussion in the thread Jeff pointed.
 
    Bookmark Topic Watch Topic
  • New Topic