07 2021 档案

摘要:package com.sheng.lesson02;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class TestText01 { public s 阅读全文
posted @ 2021-07-18 19:07 程序梦lys 阅读(105) 评论(0) 推荐(0)
摘要:package com.sheng.lesson02;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapte 阅读全文
posted @ 2021-07-18 18:30 程序梦lys 阅读(48) 评论(0) 推荐(0)
摘要:一、FlowLayout 浮动布局 package com.sheng.lesson01;import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;public class Test 阅读全文
posted @ 2021-07-18 11:11 程序梦lys 阅读(102) 评论(0) 推荐(0)
摘要:package com.sheng.lesson01;import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.awt.event.WindowListene 阅读全文
posted @ 2021-07-18 10:11 程序梦lys 阅读(314) 评论(0) 推荐(0)
摘要:package com.sheng.lesson01;import java.awt.*;public class TestFrame2 { public static void main(String[] args) { MyFrame myFrame1 = new MyFrame(100, 10 阅读全文
posted @ 2021-07-18 08:00 程序梦lys 阅读(55) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 19:13 程序梦lys 阅读(57) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 18:37 程序梦lys 阅读(46) 评论(0) 推荐(0)
摘要:学习汇编主要学习这三个:寄存器、内存、汇编指令 阅读全文
posted @ 2021-07-16 17:56 程序梦lys 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 17:38 程序梦lys 阅读(32) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 17:01 程序梦lys 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 10:06 程序梦lys 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 07:52 程序梦lys 阅读(35) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 07:40 程序梦lys 阅读(41) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-16 07:35 程序梦lys 阅读(193) 评论(0) 推荐(0)
摘要:a b c d e f g h i j 十进制,逢九进一 b是1 所以第十个数就是ba 阅读全文
posted @ 2021-07-15 19:09 程序梦lys 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-15 17:29 程序梦lys 阅读(17) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-15 17:26 程序梦lys 阅读(34) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-14 19:38 程序梦lys 阅读(29) 评论(0) 推荐(0)
摘要:一个JAVA类类中可以有多个class类,但只能有一个public class 阅读全文
posted @ 2021-07-14 18:39 程序梦lys 阅读(44) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-14 17:46 程序梦lys 阅读(65) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-14 17:12 程序梦lys 阅读(24) 评论(0) 推荐(0)
摘要:运行顺序:匿名代码块-->静态代码块-->构造方法 注意:静态代码块只执行一次 final注意问题 若类使用了final修饰符,则则不能被子类继承 阅读全文
posted @ 2021-07-13 18:53 程序梦lys 阅读(25) 评论(0) 推荐(0)
摘要:instanceof作用是判断X 与 Y 是否有联系,有则返回true,无则返回false 高转低需要强制转换,低转高不用强转,但有可能丢失本来属于自己的方法 阅读全文
posted @ 2021-07-13 18:03 程序梦lys 阅读(44) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-13 17:28 程序梦lys 阅读(31) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-12 17:17 程序梦lys 阅读(22) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-12 17:03 程序梦lys 阅读(46) 评论(0) 推荐(0)
摘要:子类继承父类的所有东西 阅读全文
posted @ 2021-07-12 16:41 程序梦lys 阅读(38) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-12 15:57 程序梦lys 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-10 16:20 程序梦lys 阅读(15) 评论(0) 推荐(0)
摘要:栈用来存放一些变量名 堆用来存放类型数据 方法区存放方法 阅读全文
posted @ 2021-07-10 15:53 程序梦lys 阅读(32) 评论(0) 推荐(0)
摘要:有篇文章讲解的比较到位:Java之构造器和构造方法的使用和意义_blog-CSDN博客_java的构造器和构造方法 阅读全文
posted @ 2021-07-10 15:18 程序梦lys 阅读(37) 评论(0) 推荐(0)
摘要:一个类包括属性和方法,除此之外绝没有多余的东西 右边的界面创建了两个新对象 并且从类中调用了属性,然后再赋值 阅读全文
posted @ 2021-07-10 00:13 程序梦lys 阅读(29) 评论(0) 推荐(0)
摘要:静态方法: 想要在另一个文件调用其中方法,需要用到 static,然后直接调用,格式为:文件名+方法(); 非静态方法: 非静态方法不能调用静态方法,必须二者都是静态方法或者非静态方法的情况下才能调用 阅读全文
posted @ 2021-07-09 22:45 程序梦lys 阅读(36) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-09 17:20 程序梦lys 阅读(24) 评论(0) 推荐(0)
摘要:属性 + 方法 = 类 阅读全文
posted @ 2021-07-09 17:13 程序梦lys 阅读(29) 评论(0) 推荐(0)
摘要:这个先空着,看了一遍视频,脑袋还是有点懵懵的,晚点回头重新学。 阅读全文
posted @ 2021-07-09 17:01 程序梦lys 阅读(19) 评论(0) 推荐(0)
摘要:优化代码: 阅读全文
posted @ 2021-07-08 16:07 程序梦lys 阅读(29) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-07 23:20 程序梦lys 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-07 22:31 程序梦lys 阅读(17) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-07 22:29 程序梦lys 阅读(35) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-07 14:36 程序梦lys 阅读(12) 评论(0) 推荐(0)
摘要:静态初始化是由系统决定数组的长度 动态初始化可以由我们自己决定数组的长度 数组的默认初始化为0 若输出数组的长度超过堆里数组的长度,则报错 阅读全文
posted @ 2021-07-05 23:04 程序梦lys 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-05 15:35 程序梦lys 阅读(31) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-05 15:08 程序梦lys 阅读(27) 评论(0) 推荐(0)
摘要:能不用递归尽量不要用递归 递归可以用来算比较小的数 算大的数电脑直接就崩了 可以用别的算法替换 阅读全文
posted @ 2021-07-05 14:50 程序梦lys 阅读(26) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-05 14:27 程序梦lys 阅读(16) 评论(0) 推荐(0)
摘要:命令行传参需要找到包的路径,从包的路径开始去执行class文件,否则运行不了 阅读全文
posted @ 2021-07-04 18:02 程序梦lys 阅读(62) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-04 16:20 程序梦lys 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-04 16:06 程序梦lys 阅读(35) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-04 15:18 程序梦lys 阅读(53) 评论(0) 推荐(0)
摘要:头脑风暴了好久,终于想通了点 第一个for循环控制行数,五行 嵌套了三个for循环在里面 三个循环输出完一个再接着一个(输出结果左右拼接) 阅读全文
posted @ 2021-07-04 14:48 程序梦lys 阅读(31) 评论(0) 推荐(0)
摘要:这个标签的作用是当内部条件不成立时可以跳到外部循环 质数是可以被1和自身整除的 两种方法: 一种是从2一直除到x/2,如果不能被整除就说明为质数一种是从2一直除到根号下x,如果不能被整除就说明为质数 阅读全文
posted @ 2021-07-04 11:45 程序梦lys 阅读(75) 评论(0) 推荐(0)
摘要:练习一 练习二 练习三 阅读全文
posted @ 2021-07-03 01:15 程序梦lys 阅读(77) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-02 23:01 程序梦lys 阅读(22) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-02 22:50 程序梦lys 阅读(137) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-02 22:30 程序梦lys 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-01 23:42 程序梦lys 阅读(22) 评论(0) 推荐(0)
摘要:next():如果字符串有空格,则空格之后则不予输出,只返回空格之前的 nextLine():返回的字符串允许带有空格 阅读全文
posted @ 2021-07-01 22:49 程序梦lys 阅读(41) 评论(0) 推荐(0)
摘要:文档注释可以写在类上面也可以写在方法上面 用IDEA生成JavaDoc文档 Other command line arguments 如果不设置,可能会有中文乱码问题,设置如下: -encoding UTF-8 -charset UTF-8 -windowtitle "测试文档" Custom sc 阅读全文
posted @ 2021-07-01 16:54 程序梦lys 阅读(43) 评论(0) 推荐(0)
摘要:包可以理解为文件目录 阅读全文
posted @ 2021-07-01 16:47 程序梦lys 阅读(19) 评论(0) 推荐(0)
摘要:第14行代码输出的结果是1020 第15行代码输出的结果是30 代码(“”)是字符串 String 字符串在前则会对后面的结果进行拼接 字符串在后则对结果直接相加 三元运算符 阅读全文
posted @ 2021-07-01 00:18 程序梦lys 阅读(40) 评论(0) 推荐(0)
摘要:这个地方了解一下二进制 << 就是 * 2 >> 就是 / 2 阅读全文
posted @ 2021-07-01 00:01 程序梦lys 阅读(19) 评论(0) 推荐(0)