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