摘要: 051_switch语句的使用 package testmode2;/** * 测试switch语句 * 遇到多值判断的时候,使用switch。当然,switch完全可以使用ifelseifelse代替! * @author * */public class TestSwitch { public 阅读全文
posted @ 2020-02-27 19:03 小白冲 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 046_使用Scanner获得键盘输入 package test_package;import java.util.Scanner;/** * 测试获得键盘输入 * @author * */public class TestScanner { public static void main(Stri 阅读全文
posted @ 2020-02-27 13:44 小白冲 阅读(153) 评论(0) 推荐(0) 编辑