10 2022 档案

摘要:多线程 线程创建--继承Thread类 不推荐使用:避免OOP单继承局限性 package com.beijing.xiaowen.multithreading; //创建线程方式一:继承Thread类,重写run方法,调用start开启线程 //总结:线程开启不一定立即执行,由cpu调度执行 pu 阅读全文
posted @ 2022-10-25 03:49 Always_0708 阅读(15) 评论(0) 推荐(0) 编辑
摘要:javadoc 帮助文档书写 public class JavaDoc{ /** * @author xiaowen * @param args * @since 1.0 * @throws null */ public static void main(String[] args){ System 阅读全文
posted @ 2022-10-23 17:06 Always_0708 阅读(13) 评论(0) 推荐(0) 编辑
摘要:抽象类 public abstract class Action { public abstract void test01(); } public class Wecome extends Action { @Override public void test01() { } } 注意事项: 1. 阅读全文
posted @ 2022-10-21 00:59 Always_0708 阅读(22) 评论(0) 推荐(0) 编辑
摘要:static 代码块 package com.beijing.xiaowen.oop; public class TestStatic { //初始数据源 { System.out.println("匿名代码快"); } //在加载类得时候,只执行一次 static { System.out.pri 阅读全文
posted @ 2022-10-21 00:50 Always_0708 阅读(18) 评论(0) 推荐(0) 编辑
摘要:继承 重写 多态 super super注意点: 1. super调用父类的构造方法,必须在构造方法的第一个 2. super 必须只能出现在子类的构造方法或方法中 3. super和this 不能同时调用构造方法 VS this: 代表的对象不同: this: 本身调用者这个对象 super: 代 阅读全文
posted @ 2022-10-21 00:02 Always_0708 阅读(20) 评论(0) 推荐(0) 编辑
摘要:面向对象 构造器 构造器:1、和类名同名 2、没有返回值 package com.beijing.xiaowen.oop; public class Person { int age; String name; //默认构造器,一般都存在 //使用new关键字,本质是构造器 //无参构造器作用: / 阅读全文
posted @ 2022-10-20 23:41 Always_0708 阅读(14) 评论(0) 推荐(0) 编辑
摘要:package com.beijing.xiaowen.Array; import java.util.Arrays; public class Test01 { public static void main(String[] args) { //冒泡排序 int[] abc = {3,5,1,6 阅读全文
posted @ 2022-10-20 02:25 Always_0708 阅读(11) 评论(0) 推荐(0) 编辑
摘要:package com.beijing.xiaowen.methods; import java.util.Scanner; public class Test01 { public static void main(String[] args) { int a = 0; int b = 0; St 阅读全文
posted @ 2022-10-20 01:22 Always_0708 阅读(23) 评论(0) 推荐(0) 编辑
摘要:可变参数 package com.beijing.xiaowen.methods; public class Demo01 { public static void main(String[] args) { method01(1,2,4,1); } //可变参数,即在参数类型后 用... 表示 / 阅读全文
posted @ 2022-10-20 00:58 Always_0708 阅读(13) 评论(0) 推荐(0) 编辑
摘要:for 循环联系题 计算0-50的奇数和偶数的和 package com.beijing.xiaowen.scanner; public class Test01 { public static void main(String[] args) { //计算0-50的奇数和偶数的和 int a = 阅读全文
posted @ 2022-10-20 00:25 Always_0708 阅读(28) 评论(0) 推荐(0) 编辑
摘要:用户交互Scanner package com.beijing.xiaowen.scanner; import java.util.Scanner; public class Demo01 { public static void main(String[] args) { //接受键盘输入内容 S 阅读全文
posted @ 2022-10-19 23:10 Always_0708 阅读(15) 评论(0) 推荐(0) 编辑
摘要:基本运算符 package com.beijing.xiaowen.operator; public class Demo01 { public static void main(String[] args) { int a = 10; int a1 = 20; int a2 = 30; int a 阅读全文
posted @ 2022-10-19 01:22 Always_0708 阅读(30) 评论(0) 推荐(0) 编辑
摘要:变量 public class WithZVariable { //类变量 static int abc = 66; //实例变量 从属于对象;如果不自行初始化,这个类型默认值为 0 0.0 //布尔值:默认是false //除了基本类型 其余都是null String abv = "zhou"; 阅读全文
posted @ 2022-10-19 00:29 Always_0708 阅读(17) 评论(0) 推荐(0) 编辑
摘要:public class TypeConversion { public static void main(String[] args) { /** * 低 高 * byte short char int long float double * */ int a = 128; byte b = (b 阅读全文
posted @ 2022-10-19 00:05 Always_0708 阅读(19) 评论(0) 推荐(0) 编辑
摘要:public class BasicSyntax { public static void main(String[] args) { System.out.println("laoliu"); /** * 八大基本数据类型 * */ //整数 int num1 = 10; byte num2 = 阅读全文
posted @ 2022-10-18 23:49 Always_0708 阅读(17) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-10-18 15:11 Always_0708 阅读(0) 评论(0) 推荐(0) 编辑
摘要:简单的Dos命令 打开CMD的方式 常用的Dos命令 *所有的符号皆为因为符* #盘符切换 E: #查看当前目录下的所有文件 dir #切换目录 cd 目录的名字 (E:\java) cd .. 返回上一级 #清屏 cls #退出 exit #查看电脑的ip ipconfig #打开应用 calc 阅读全文
posted @ 2022-10-18 00:35 Always_0708 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Typora 使用快捷键 标题用“#” 字体用“*“和”~“ 我 我 你 ~~wo~~ 引用 学习每一天 分割线 图片 超链接 我的博客 列表 表格 | | | | | | | | | | | | | | | | | | | | 代码 Hello World !!! 阅读全文
posted @ 2022-10-17 23:14 Always_0708 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示