Bookmark Topic Watch Topic
  • New Topic

need urgent help in a sorting program  RSS feed

 
vasantkr kr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
Input File:
sss.java 88
sss.html 99.5
sss.java 89.5
sss.html 77
sss.java 11/13/2005
sss.html 02/22/2005
sss.java 89
.
.
.
// n inputs

Output File:
1.Sorted List for sss.java:
88
89
2.Sorted Decimal List for sss.java
89.5
3.Sorted Date list for sss.java
13-Nov-2005


1.Sorted List for sss.html:
77
2.Sorted Decimal List for sss.html
99.5
3.Sorted Date list for sss.java
22-feb-2005


i am reading the input and then using String Tokenizer to break each input line and storing it in a Hashtable but i have a problem getting the output that can be sorted and stored in an output file in the given format.
I hope i get a reply with a bit of code.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums. The other copy is here, I will ask for this copy to be closed.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!