290114lyp

导航

2022年10月23日

结构选择

摘要: if单选择结构 if(布尔表达式){ //如果布尔表达式为true将执行的语句 } package com.jiemo.struct;import java.util.Scanner;public class Ifshabi1 { public static void main(String[] a 阅读全文

posted @ 2022-10-23 21:27 是芥末!日 阅读(14) 评论(0) 推荐(0) 编辑

Scanner进阶使用

摘要: package com.jiemo.scanner;import java.util.Scanner;public class Shabi3 { public static void main(String[] args) { Scanner scanner =new Scanner(System. 阅读全文

posted @ 2022-10-23 19:59 是芥末!日 阅读(13) 评论(0) 推荐(0) 编辑

next和nextline

摘要: package com.jiemo.scanner;import java.util.Scanner;public class Shabi1 { public static void main(String[] args) { //创建一个扫描器对象,用于接收键盘数据 Scanner scanner 阅读全文

posted @ 2022-10-23 16:23 是芥末!日 阅读(18) 评论(0) 推荐(0) 编辑

Javados建立文档

摘要: package com.jiemo.base;/** * @author shabi *@version 1.0 *@since 1.8 */public class Doc { String name; /** * @author shabi * @param name * @return * @ 阅读全文

posted @ 2022-10-23 15:49 是芥末!日 阅读(15) 评论(0) 推荐(0) 编辑

包机制

摘要: ◆为了更好地组织类,Java提供了包机制,用于区别类名的命名空间。 ◆包语句的语法格式为: package pkg1[. pkg2[. k3...]]; ◆- -般利用公司域名倒作为包名; ◆为 了能够使用某一个包的成员, 我们需要在Java程序中明确导入该包。使用"import"语句可完成此功能 阅读全文

posted @ 2022-10-23 15:01 是芥末!日 阅读(12) 评论(0) 推荐(0) 编辑