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 23-feb-2005
1.Sorted List for sss.html: 88 89 2.Sorted Decimal List for sss.html 99.5 3.Sorted Date list for sss.html 22-feb-2005
The requirement is to read the data line by line as given in the input file for 'n' entries and then present the output by sorting.Output should be similar to the one shown in 'output file'. Here is what i have done so far.......
//After this i need help to sort the values so that i can present them in the format specified in the output file. [ January 25, 2006: Message edited by: vasantkr kr ]
Why did you respond to my post with a private message instead of just posting your question here?
I have finished reading the file and split the contents(i.e the string and the number). From here i have to sort the contents. The problem comes when am trying to read the date and to print it in the format specified in the output file.
Please explain exactly what "the problem" is. Did you write some code? Does it compile or not? Do you get an error message? If yes, copy & paste the error message here.
You can parse and format dates using java.text.SimpleDateFormat (see the API documentation).