package com.yi.ifDemo; public class Switch { public static void main(String[] args) { int i = 10; switch(i){ case 2: System.out.println("吕宝元!"); break; case 5: System.out.println("吕宝元02!"); break; case 8: System.out.println("吕宝元03!"); break; case 10: System.out.println("伊!"); break; default: break; }
初级程序员
by: JackCool 发表于:2018-07-09 13:06:23 顶(0) | 踩(0) 回复
不会用
回复评论