This content has been marked as final. Show 4 replies
MichaelStu wrote:Is google broken?
I'm newbie in this forum, I'm development a java game and now I would like to implements a rank for players.
Basically, I have some players that play to the game and then (at game finish) game will write a .txt file with date, score and name player.
How I can implements it?
[Lesson: Basic I/O|http://download.oracle.com/javase/tutorial/essential/io/]
MichaelStu wrote:The link works for me, but if for some reason it doesn't work for you, just google "java file IO". Read through the tutorial carefully. Ask a question when you get stuck, and make sure you post an [SSCCE |http://sscce.org] demonstrating the problem.
link is broken...
then need help in how implements...such as write in a txt file and then apply a bubble sort algorithm?What? You are thinking about it all wrong. Why would you write to a file and then sort?
One thing at a time. Split your problem up into smaller pieces. Sorting your data is a completely different issue than writing to a file, and for that I'd recommend googling comparators and looking up the sort functions of the Collections and Arrays classes in the API (since links don't work for you, go ahead and google those too).