12 2022 档案

摘要:switch 可以用来编写单词翻译器 ctrl + alt +l 会锁qq 阅读全文
posted @ 2022-12-28 17:48 宇AI泽 阅读(27) 评论(0) 推荐(0)
摘要:IDEA常用快捷键整理大全(非常详细)持续更新中..._林二月er的博客-CSDN博客_idea快捷键 注释快捷键 ctrl + shift +/ 其它快捷键 阅读全文
posted @ 2022-12-28 10:14 宇AI泽 阅读(14) 评论(0) 推荐(0)
摘要:键盘录入 int sth = sc.nextInt(); 面对不同类型 : String noodles = sc.next(); package com.itheima.SwitchDemo; import java.util.Scanner; /* 语句格式 switch(表达式){ case 阅读全文
posted @ 2022-12-28 10:04 宇AI泽 阅读(26) 评论(0) 推荐(0)
摘要:package com.itheima.test; import java.util.Scanner; public class Test6 { public static void main(String[] args) { //商品的价格 /* 需求: VIP会员打折制度 商品价格为1000 键 阅读全文
posted @ 2022-12-27 17:45 宇AI泽 阅读(37) 评论(0) 推荐(0)
摘要:1. if(关系表达式){ 语句体1; } 2. if(关系表达式){ 语句体1; } else{ 语句体2; } 3. //嵌套 if(关系表达式1){ if(关系表达式2){ 语句体1; } else{ 语句体2; } } //多条件判断 if(关系表达式1){ 语句体1; }else if(关 阅读全文
posted @ 2022-12-27 11:32 宇AI泽 阅读(38) 评论(0) 推荐(0)
摘要:package com.itheima.test; public class Test4Up { public static void main(String[] args) { /* //需求:购物,商品总价600元。 //键盘录入整数表示客户支付的钱 //如果大于等于600,表示支付成功,否付款 阅读全文
posted @ 2022-12-27 10:43 宇AI泽 阅读(27) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-12-26 15:43 宇AI泽 阅读(21) 评论(0) 推荐(0)