上一页 1 ··· 11 12 13 14 15
摘要: 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) 编辑
摘要: 040_字符串连接符 package test_package; /** * 字符串运算符 * @author * */public class TestOperator05 { public static void main(String[] args) { String a = "3"; int 阅读全文
posted @ 2020-02-22 22:52 小白冲 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15