增强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
python学习之面向对象 类定义 与python的函数定义类似,只不过把def关键字替换为class class calculator(): pass a=calculator() print(type(a)) 输出 <class 'main.calculator'> 构造函数 与php的定义类似 ...
分类:
编程语言 时间:
2021-03-01 12:58:32
阅读次数:
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
array_fill — 用给定的值填充数组 说明 array_fill ( int $start_index , int $count , mixed $value ) : array 用 value 参数的值填充 count 个元素到数组, 开始键名由 start_index 参数指定。 参数 ...
分类:
Web程序 时间:
2021-02-27 13:28:45
阅读次数:
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