class MyClass {
public static void main
(String args
[]) { int i = 0;
int j = 0;
int a = i++; // a = 0, i = 1
int b = ++j; // b = 1, j = 1
System.
out.
println("i = " + i
); System.
out.
println("j = " + j
); System.
out.
println("a = " + a
); System.
out.
println("b = " + b
); }
}
CmNsYXNzIE15Q2xhc3MgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nIGFyZ3NbXSkgewogICAgICAgIGludCBpID0gMDsKICAgICAgICBpbnQgaiA9IDA7CiAgICAgICAgCiAgICAgICAgaW50IGEgPSBpKys7IC8vIGEgPSAwLCBpID0gMQogICAgICAgIGludCBiID0gKytqOyAvLyBiID0gMSwgaiA9IDEKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oImkgPSAiICsgaSk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJqID0gIiArIGopOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiYSA9ICIgKyBhKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oImIgPSAiICsgYik7CiAgICB9Cn0K