• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collection  RSS feed

 
bhaveshs shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
In Collection how to we add or delete element randomly.
Kindly suggest me or which method/interface can be used for add and delete element from Collection

Thanking You

Regards
Bhavesh
 
Srikanth Basa
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In Collection how to we add or delete element randomly.



We have the following methods to add/remove an object.
boolean add(Object o)
boolean remove(Object o)

But what do you mean "Randomly" ?
[ February 09, 2007: Message edited by: Srikanth Basavaraju ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!