Java Programming Tutorial - Increment Operators


import java.util.Scanner;
public class Coffee{
public static void main(String arg[]) {
Scanner thileban = new Scanner (System.in);
int coffee =5;
int bass = 18;
++coffee;
System.out.println(coffee);
}
}



coffee= coffee + 5;

Comments