File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

Adding Elements

 
amit bhadre
Ranch Hand
Posts: 124
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • 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