aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/testsrc/TestSwitchy.java
blob: 1f65a12d85b045016c9a197ab32ed27808292acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * @author hilsdale
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public abstract class TestSwitchy {


    public int i = 3;
    
    public static final int j = 4;
    
    
    public static void main(String[] args) {
        switch (args.length) {
            case 0: System.err.println("hi");
            case 1: System.err.println("bye"); break;
            case 2: System.err.println("two");
            default: System.err.println("ning");
        }
        System.err.println("done");
    }
    
    
    abstract int goo();
    
    void nimbo() {}   
}