Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LinkedHashMap program

 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write a program using LinkedHashMap to get the result 3 2 1.But I don�t know what method to use.Can someone please help me.

This is my program I written.

 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ August 04, 2006: Message edited by: Garrett Rowe ]
 
Mateus Lucio
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Garrett Rowe:




you could use generics to type check at compile time!

LinkedHashMap<String, Integer> lhm = new LinkedHashMap<String, Integer>()
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic