Daniel Holle
ebd6a00a39
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 2m50s
28 lines
272 B
Java
28 lines
272 B
Java
import java.lang.Integer;
|
|
|
|
public class PreInc {
|
|
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;
|
|
}
|
|
|
|
} |