So you want to load and save some data in your game, a good way is via a JSON file.
In your main class:
Set up a GameData class:
And set up a GameManager class:
Game data will be loaded if the is JSON file in “bin/” else a file will be created.
The file will be encoded so it will be hard to manipulate by a user.