1 package mergesort; 2 3 import java.util.Arrays; 4 5 public class MergeSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{11, ...
分类:
编程语言 时间:
2021-03-01 13:28:05
阅读次数:
0
增强for循环 格式: for(声明语句:表达式){ //代码 } /** * @author Administrator * @create 2021/2/27 22:46 */ public class Demo05 { public static void main(String[] args ...
分类:
其他好文 时间:
2021-03-01 13:19:47
阅读次数:
0
循环结构 while 语法 int i = 0; while(i<100){ i++; } 注意: 只要布尔表达式为true,循环就会一直执行 多数情况会让循环停止,需要一个让表达式false的方式来结束循环 少部分情况需要循环一直执行,比如服务器的请求响应监听等 循环条件一直为true会无限循环/ ...
分类:
其他好文 时间:
2021-03-01 13:18:26
阅读次数:
0
1、配置绑定(要么使用把它加到容器中,要么在配置类中开启配置绑定) 过程:properties-->配置文件-->JavaBean ~使用原生代码编写(麻烦): public class getProperties { public static void main(String[] args) t ...
分类:
编程语言 时间:
2021-03-01 13:03:57
阅读次数:
0
Java基础 0.idea快捷操作 1 //idea快捷操作 2 public static void main(String[] args){ 3 //idea快捷输入:psvm 4 System.out.println(""); 5 //idea快捷输入:sout 6 } 7 //Ctrl+D: ...
分类:
编程语言 时间:
2021-02-27 13:39:28
阅读次数:
0
//super关键字 //1、作为函数调用,调用父类的构造函数. //ES6中要求,在字类构造函数中,必须执行一个super函数 //super指向父类的原型不是父类class class A { constructor(x) { this.x = x } } class B extends A { ...
分类:
其他好文 时间:
2021-02-27 13:27:26
阅读次数:
0
package com.dai.tree; public class ArrBinaryTreeDemo { public static void main(String[] args) { // TODO Auto-generated method stub int[] arr = {1,2,3, ...
分类:
其他好文 时间:
2021-02-27 13:26:43
阅读次数:
0
package com.dai.tree.threadedbinarytree; public class ThreadedBinaryTreeDemo { public static void main(String[] args) { //测试中序线索二叉树功能是否正确 HeroNode roo ...
分类:
其他好文 时间:
2021-02-27 13:26:03
阅读次数:
0
关键字 标识符注意点 所有的标识符都应该以字母(A-Z或者a-z),美元符($)、或者下划线(__)开始 首字母之后可以是字母A-Z或者a-z),美元符($)、或者下划线(__)或数字的任何字符组合 不能使用变量关键字用作变量名 标识符是大小写敏感的 合法的标识符:age,$salary、_valu ...
分类:
编程语言 时间:
2021-02-27 13:22:07
阅读次数:
0
let urlBig = "http://static.699pic.com/best_album/57_banner_____.jpg!/fh/410" let urlMid = "http://static.699pic.com/best_album/57.jpg" let urlSmall = ...
分类:
其他好文 时间:
2021-02-26 13:31:15
阅读次数:
0