Switch查找case的方式 tableswitch: a table with keys and labels lookupswitch: uses a table with labels only(采用二分查找法) tableswitch 当使用tableswitch时,从stack中获取int值,并直接通过index获取需要跳转的label, 并且立即执行跳转操作。在整个lookup + jump进程中,时间复杂度为O(1) public static void testSwitch(String type…