Operators Java Tutorial

add an integer variable by one.
increment operator: two successive plus signs, ++.
decrement operator: --.

public class MainClass {
  public static void main(String[] argv) {
    int count = 10;
    ++count;      // Add 1 to count
    --count;      // Subtract 1 from count
    
    System.out.println(count);
  }
}
10