Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes ArrayList problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayList problem" Watch "ArrayList problem" New topic
Author

ArrayList problem

Christian Long
Greenhorn

Joined: Oct 04, 2007
Posts: 28
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
Sheriff

Joined: Sep 28, 2004
Posts: 18990
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Christian Long
Greenhorn

Joined: Oct 04, 2007
Posts: 28
Ok - Thanks a lot. Its working.

This Topic can be closed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ArrayList problem