so im making my own game now and I have to count score for both of the characters, does anyone know hot to do that?


1 2 3 4 5 6 7 8 9 10 11 | public class Player { private int score = 0 ; public void increaseScore( int amount) { score += amount; } public int getScore() { return score; } } |