2018-03-21 12:08:39 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
|
|
|
|
public class PreInc {
|
2024-03-14 13:37:55 +00:00
|
|
|
public m() {
|
2018-03-21 12:08:39 +00:00
|
|
|
var i = 0;
|
|
|
|
++i;
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public m2() {
|
2018-03-21 12:08:39 +00:00
|
|
|
var i = 0;
|
|
|
|
var j = ++i;
|
|
|
|
return j;
|
|
|
|
}
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public d() {
|
2018-03-21 12:08:39 +00:00
|
|
|
var i = 0;
|
|
|
|
--i;
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public d2() {
|
2018-03-21 12:08:39 +00:00
|
|
|
var i = 0;
|
|
|
|
var j = --i;
|
|
|
|
return j;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|