I'm coding a Java game and there are 26 levels so far. When the user completes a level, I want the space above the level to have a checkmark or something. However I don't know how to make it where when I close the game, the checkmark is still there from last time I played it and it doesn't reset the game from the beginning.
How can I store data for a game and save the values of variables so the game doesn't restart every time I close out of it?