FileDocCategorySizeDatePackage
Switch.javaAPI DocExample303Mon Oct 30 12:56:46 GMT 2000None

Switch

public class Switch extends Object

Fields Summary
static short
s
static int
i
static long
L
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

 
		switch(s) {
			case 0: System.out.println(s);
		}
		switch(i) {
			case 0: System.out.println(i);
		}
		switch(L) {		// EXPECT COMPILER ERROR
			case 0: System.out.println(L);
		}