test/Test.java
raw| 1 | class Test { |
| 2 | static void f() |
| 3 | { |
| 4 | System.out.println("f"); |
| 5 | } |
| 6 | static int g(int x, int y) |
| 7 | { |
| 8 | System.out.println("g " + x + " " + y); |
| 9 | return x + y; |
| 10 | } |
| 11 | static int a; |
| 12 | int b; |
| 13 | int h() { |
| 14 | System.out.println("h"); |
| 15 | return b; |
| 16 | } |
| 17 | static int k(Testcb cb, int x) |
| 18 | { |
| 19 | System.out.println("k " + x); |
| 20 | cb.f(); |
| 21 | return cb.g(x); |
| 22 | } |
| 23 | } |