Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Putting an object instance into an ArrayList

 
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This looks the same as your other thread? https://coderanch.com/t/567151/java/java/Putting-object-instance-ArrayList Is it not?

Please UseOneThreadPerQuestion.(⇐click)
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Jeff Verdegan wrote:This looks the same as your other thread? https://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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic