Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList problem

 
Christian Long
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, here is part of my code that is working for Reading Objects from a File:


The Problem is that now I need to replace this Array by an ArrayList.
But I cannot understand(make it work) how to Read the Objects to the ArrayList.
[ October 06, 2007: Message edited by: Christian Long ]
 
Henry Wong
author
Marshal
Pie
Posts: 20997
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Problem is that I now need to replace this Array by an ArrayList.
But I cannot understand how to Read the Objects to the ArrayList.


How about reading the object to an employee reference, and then add the reference to the array list?

Henry
 
Christian Long
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok - Thanks a lot. Its working.

This Topic can be closed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic