I am making a program that randomly generates made-up basketball players with specific 0-100 ratings in 5 categories for each player. To accomplish this, I need to find a way to save the players' ratings so that they don't keep randomly regenerating every time I run the program. Instead they should be saved somewhere and after every subsequent run, appear as saved.
I was thinking of storing data in a text file, but I'm not sure how to export the numbers as they are randomly generated, as well as how to display the numbers back into java thru the text file.
Aucun commentaire:
Enregistrer un commentaire