Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Adding Elements

 
amit bhadre
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Report post to moderator
How t add elements of any data type in Stacks,ArrayList,HashTable,HashMap,HashSet, etc of util package?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can put anything extending the Object class in Collections like ArrayList, Stack... Search the API to know which method to call.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question multiple times. If you get an answer you don't like, then provide followup information in the same thread. here is the first time you asked about this. I'm closing this later thread.
 
    Bookmark Topic Watch Topic
  • New Topic