The same as you did for gson... Download the jar and then it depends on your ide.
For intelij:
Left conner, click on file, then projectstructure, global libaries, + sign, from java, navigate to the jar, add, ok
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net
Daniel Demesmaecker wrote:Yeah... without any context I don't really know what's wrong.
but you could use that if statement in the creation of your jsonObject
I just think that your createJsonObject() method isn't used anywhere so it won't 'create' a new hiscore once dead.
Daniel Demesmaecker wrote:yeah for that part you have to do yourself... But at least you got a good start now...
I fixed this but the application crashes on startup once a new highscore is added. This is because your .txt is vertically built and mine just adds the object horizontally.
So yours is like:
and mine is:
Do you know how I could add this highscore under the previous one so the app doesn't crash?