SyntaxFix
Write A Post
Hire A Developer
Questions
Integer objects are immutable, so you cannot modify the value once they have been created. You will need to create a new Integer and replace the existing one.
Integer
playerID = new Integer(playerID.intValue() + 1);