It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

SORT

SORT

Postby Takver on Tue Feb 27, 2007 8:49 am

Hi, i'm a total beginner in java. I need a program that reads data from an input file and sort it in a descending order and then outputs it in another output text file. The problem is that the program should not 'know' what data is in the input file. (in the input file there are products and their prices.) How can i do this?
I know how the input and output goes with BufferedReader, PrintWriter and that but i just could not figure out the sorting. :(
Please help,
Thanks in advance
Takver
 
Posts: 0
Joined: Tue Feb 27, 2007 8:28 am

Who is online

Users browsing this forum: No registered users and 1 guest