摘要:
阅读全文
posted @ 2021-08-24 00:49
君半杯
阅读(19)
评论(0)
推荐(0)
|
摘要:
1.java接口的作用:约束2.定义一些方法,让不同的人实现~ 10个人实现的是一个接口,但是有十种不同的实现方式3.接口中默认的方法 public abstract4.常量 public static final (静态常量)5.接口不能被实例化~,接口中没有构造方法~6.implements可以 阅读全文
posted @ 2021-08-19 14:30
君半杯
阅读(41)
评论(0)
推荐(0)
摘要:
构造器: 1.和类名相同 2.没有返回值 作用: 1.new本质在调用构造方法 2.初始化对象的值 注意点: 1.定义有参构造之后,如果想使用无参构造,显示的定义一个无参的构造 Alt + Insert 构造器快捷键 this.xxxxx是代表当前类的 而后面=的这个值通常是参数传进来的值 阅读全文
posted @ 2021-07-27 17:20
君半杯
阅读(30)
评论(0)
推荐(0)
摘要:
1.IDEA 的 JavaDoc 生成功能在菜单 Tools->Generate JavaDoc 项里面。 2.里面有一个 Locale 可选填项,建议在此填写 zh_CN。 3.还有一个“Other command line arguments:”可选填项 跟狂神一样填这段来让文字更容易编译 -e 阅读全文
posted @ 2021-06-29 13:55
君半杯
阅读(40)
评论(0)
推荐(0)
摘要:
//字符串连接符 + , String int a = 10;int b = 20; System.out.println(""+a+b);//输出为1020System.out.println(a+b+"");//输出为30,如果字符串(“”)在后面,那么他依旧进行运算 //条件运算符 // x 阅读全文
posted @ 2021-06-28 14:11
君半杯
阅读(23)
评论(0)
推荐(0)
摘要:
//++ -- 自增, 自减 一元运算符int a = 3;int b = a++; //执行完这行代码后,先给b赋值,再自增//a = a + 1;System.out.println(a); //a = 4System.out.println(b); //b = 3System.out.prin 阅读全文
posted @ 2021-06-28 13:29
君半杯
阅读(248)
评论(0)
推荐(0)
摘要:
char c2 = '我';char c3 = '爱';char c4 = '你'; System.out.println(c2);System.out.println((int)c2);System.out.println(c3);System.out.println((int)c3);Syste 阅读全文
posted @ 2021-06-22 11:30
君半杯
阅读(442)
评论(0)
推荐(0)
摘要:
Win键+R 输入cmd打开控制台 #盘符切换cd xxx 打开xxx#查看当前目录下的所有文件 dir#切换目录 cd change direcd.. 返回上一级#清理屏幕 cls (clear screen)#退出终端 exit#查看电脑ip ipconfig #打开应用 calc 计算器 ms 阅读全文
posted @ 2021-05-11 22:06
君半杯
阅读(43)
评论(0)
推荐(0)
|