32 lines
453 B
Java
32 lines
453 B
Java
|
package test;
|
||
|
|
||
|
public class AClass {
|
||
|
public static int staticintval = 100;
|
||
|
|
||
|
public int intval = 0;
|
||
|
|
||
|
public static int GetStaticInt() {
|
||
|
return staticintval;
|
||
|
}
|
||
|
|
||
|
public static void SetStaticInt(int val) {
|
||
|
staticintval = val;
|
||
|
}
|
||
|
|
||
|
public void IncInt() {
|
||
|
intval = intval + 1;
|
||
|
}
|
||
|
|
||
|
public int GetInt() {
|
||
|
return intval;
|
||
|
}
|
||
|
|
||
|
public void SetInt(int val) {
|
||
|
intval = val;
|
||
|
}
|
||
|
|
||
|
public void AddInts(int val1, int val2) {
|
||
|
intval = val1 + val2;
|
||
|
}
|
||
|
}
|