This week's book giveaway is in the HTML, CSS and JavaScript forum.
We're giving away four copies of hapi.js in Action and have Matt Harrison on-line!
See this thread for details.
Win a copy of hapi.js in Action this week in the HTML, CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sorting hashtable in j2me

 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I sort a hashtable in J2ME? There is no comparator that can be used.

 
Tim Holloway
Saloon Keeper
Posts: 18387
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't actually sort a hashtable - a hashtable is not a linear structure. However you can create a list of entries contained in a hashtable and sort the list. You just have to do it the old-fashioned way and code it all yourself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!