TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Canada - Toronto & Southern Ont.
-- Programming with Java


Posted by beefy k on Oct-13-2006 19:05:

Programming with Java

If anyone is good at Java and can help me out for 10 mins i would be very greatful.

I need a method that sorts a text file alphabetically... PLEASE its due at 7!!!!!!!!!!!!!!!!!!


Posted by Swamper on Oct-13-2006 19:35:

read the file into an Array (BufferedReader/Readline?) and then sort it

I don't remember much as I haven't touched Java in 5 years - this page might help though.


Posted by zokissima on Oct-13-2006 19:45:

That's what I would do. Pump it into an array, then sort the array, and push it back into a text file.


Posted by Cosmic Fur on Oct-13-2006 20:43:

Re: Programming with Java

quote:
Originally posted by beefy k
If anyone is good at Java and can help me out for 10 mins i would be very greatful.

I need a method that sorts a text file alphabetically... PLEASE its due at 7!!!!!!!!!!!!!!!!!!


I charge $25/hr, and it took me 5 minutes to answer your question on MSN, so you owe me 2 dollars.


Posted by dEsidEL on Oct-13-2006 21:19:



lol.. good old TOTA manfest hard @ work



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.