2004-12-09 | Paul Boddie | file changeset files shortlog | Changed the special notation for Java-callable methods so that methods may be more easily written in Python. Added various method implementations so that javax.servlet.http.Cookie can at least be instantiated. |
paul@63 | 1 | public class SwitchTest { |
paul@63 | 2 | |
paul@63 | 3 | public int test(int x) { |
paul@63 | 4 | switch (x) { |
paul@63 | 5 | case 0: |
paul@63 | 6 | |
paul@63 | 7 | case 1: |
paul@63 | 8 | x = x + 10; |
paul@63 | 9 | break; |
paul@63 | 10 | |
paul@63 | 11 | case 2: |
paul@63 | 12 | x = x + 20; |
paul@63 | 13 | break; |
paul@63 | 14 | |
paul@63 | 15 | default: |
paul@63 | 16 | break; |
paul@63 | 17 | } |
paul@63 | 18 | |
paul@63 | 19 | return x; |
paul@63 | 20 | } |
paul@63 | 21 | } |