Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent Help!

 
Prabha Dhandapani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Prabha
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic