File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Urgent Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Urgent Help!" Watch "Urgent Help!" New topic

Urgent Help!

Prabha Dhandapani
Ranch Hand

Joined: Sep 11, 2003
Posts: 70
Hi all,
I have a piece of code as follows:

Is anythign wring with the way I have used the ArrayList.Please let me know if there are any errors in this?Any help ASAP would be appreciated.
Many Thanks in advance,
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

Near as I can tell, it looks fine. I would not actually use ArrayList as my reference type; instead, I would use the more generic List (or even Collection). That way I could change it to a LinkedList or even some typ eo fSet if I wanted to.
Are you having any specific problems with this code? If so, please post them. We can't solve a problem if we don't know what it is.

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I agree. Here's the link:
subject: Urgent Help!
It's not a secret anymore!