摘要: package com.hqyj.javacode.Ifelse;/** * switch 分支结构 * 1 整形表达式 * 2 整形常量 * 3case有误break; * 4都不匹配的时候执行default */public class TestSwitch { public static vo 阅读全文
posted @ 2022-03-21 20:41 java小寇 阅读(51) 评论(0) 推荐(0)
摘要: package com.hqyj.javacode.Ifelse;// else if public class TestEleseIf { public static void main(String[] args) { // 给分数评等级 int a=90; if (a>90) { System 阅读全文
posted @ 2022-03-21 20:17 java小寇 阅读(82) 评论(0) 推荐(0)
摘要: package com.hqyj.javacode.Ifelse;public class TestIfElse { public static void main(String[] args) { //if判断 int soce=80; if (soce>60) System.out.printl 阅读全文
posted @ 2022-03-21 20:10 java小寇 阅读(41) 评论(0) 推荐(0)
摘要: package com.hqyj.javacode.Ifelse;/** * if 结构 */public class TestIf { public static void main(String[] args) { //if判断 int soce=80; if (soce>60) System. 阅读全文
posted @ 2022-03-21 20:09 java小寇 阅读(33) 评论(0) 推荐(0)
摘要: package com.hqyj.javacode.operator;/** * 字符串和字符串拼接 字符串和其他类型拼接 * 扩展 :当有多个类型参与的运算 +是算数运算还是拼接 */public class TestOperator3 { public static void main(Stri 阅读全文
posted @ 2022-03-21 19:28 java小寇 阅读(298) 评论(0) 推荐(0)