I want to create a Java counter that counts the amount of wins a person has in a game. I tried the following:
int winCount=0;
winCounter=new Label(int winCount);
Eclipse tells me to convert winCount into a string, but I need it to work mathematically. How can I do this?
To convert
winCountto a string when creating the label:To convert back to an integer from the label’s value: