Daniel Holle
ebd6a00a39
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 2m50s
27 lines
274 B
Java
27 lines
274 B
Java
import java.lang.Integer;
|
|
|
|
public class PostIncDec {
|
|
public m() {
|
|
var i = 0;
|
|
i++;
|
|
return i;
|
|
}
|
|
|
|
public m2() {
|
|
var i = 0;
|
|
var j = i++;
|
|
return j;
|
|
}
|
|
|
|
public d() {
|
|
var i = 0;
|
|
i--;
|
|
return i;
|
|
}
|
|
|
|
public d2() {
|
|
var i = 0;
|
|
var j = i--;
|
|
return j;
|
|
}
|
|
} |