Java int how to change the int variable but keep the same initialized word more in discuss on my question?

Use normal arithmetic operators.

// Create an int starting with a value of 2500
int balance = 2500;

// Deposit 500
balance = balance + 500;

// Withdraw 500
balance = balance - 500;


See the related links section for a tutorial.