Java vor Inkrement
//Preincrement
x = 0;
System.out.println(++x); // this prints 1 because increments before execute print
Johiny
//Preincrement
x = 0;
System.out.println(++x); // this prints 1 because increments before execute print
int x =0;
// POST increments: increments after it prints x or stmt
System.out.println("Hello World"+ x++); // 0
System.out.println("Hello World"+ x); // 1
// PRE increments: increments before it prints x or stmt
System.out.println("Hello World"+ ++x); // 1
System.out.println("Hello World"+ x); // 1