int count = 0;
System.out.println(count++);
System.out.println(count++);
output: 0, 1
int count = 0;
System.out.println(++count);
System.out.println(++count);
output: 1, 2
int count = 0;
System.out.println(count++);
System.out.println(++count);
output: 0, 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment