public class TestSwitchSelect { public static void main(String[] args) { switch (type) { case 1: break; case 2: break; default: break; } } }