Could someone give me please a way to debug the following examples:
public class Example1 {
public static void main(String[] input) {
int i = 0;
// i = i++ + i++; // prints 1
// i = i++ + i++ + i++; // prints 3
i = i++ + i-- + i++; // prints 1
System.out.print(i);
}
}
since each example is one single line code, using a debugging is not a solution... I am trying to play with code like this one for my Java OCA 8 exam.
Thanks for your help