• Post Reply Bookmark Topic Watch Topic
  • New Topic

String set java 1.4.2

 
Mi Chu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had this method for java 1.6. but this doesnt work for java 1.4.2. I came to know that this was introduced from 1.5. So, is there any other equivalent way of writing this in 1.4.2?

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run, don't walk, away from anyone who makes you use Java 1.4 or Java 5. Even Java 6 is obsolete at this point.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if you have to use 1.4 for any reason, then the Set interface has an iterator method and you can use this to iterate over the set.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!