2007-09-23 19:39:03 -06:00
|
|
|
public class Instructions {
|
2007-09-28 08:45:26 -06:00
|
|
|
private static int alpha;
|
|
|
|
private static int beta;
|
|
|
|
|
2007-09-26 17:23:03 -06:00
|
|
|
private String foo(String s) {
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String bar(String s) {
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2007-09-28 08:45:26 -06:00
|
|
|
private static String baz(String s) {
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2007-09-23 19:39:03 -06:00
|
|
|
public static void main(String[] args) {
|
|
|
|
int a = 2;
|
|
|
|
int b = 2;
|
|
|
|
int c = a + b;
|
2007-09-26 17:23:03 -06:00
|
|
|
|
2007-09-27 16:20:54 -06:00
|
|
|
Instructions i = new Instructions();
|
|
|
|
i.foo("hello");
|
|
|
|
i.bar("hello");
|
2007-09-28 08:45:26 -06:00
|
|
|
baz("hello");
|
|
|
|
|
|
|
|
int d = alpha;
|
|
|
|
beta = 42;
|
|
|
|
alpha = 43;
|
|
|
|
int e = beta;
|
|
|
|
int f = alpha;
|
2007-09-23 19:39:03 -06:00
|
|
|
}
|
|
|
|
}
|