以ArrayList为例。 List<Integer> list = new ArrayList<>(); for(int i=0;i<11;i++){ List.add(i);} 遍历方式一:普通for循环(适合ArrayList。) for(int i=0;i<list.size();i++){ ...
分类:
其他好文 时间:
2020-10-26 10:41:31
阅读次数:
24
<configuration> <properties resource="db.properties"></properties> <settings> <!-- 控制全局缓存(二级缓存),默认 true--> <setting name="cacheEnabled" value="true"/> ...
分类:
其他好文 时间:
2020-10-26 10:37:47
阅读次数:
29
什么是线性表 ? 线性表是 n 个数据元素的有限序列,最常用的是链式表达,通常也叫作线性链表或者链表。在链表中存储的数据元素也叫作结点,一个结点存储的就是一条数据记录。每个结点的结构包括两个部分: 第一是具体的数据值 第二是指向下一个结点的指针 这是一个单项链表 如果最后一个指向第一个就会形成一个循 ...
分类:
其他好文 时间:
2020-10-24 11:54:47
阅读次数:
41
简介本文主要介绍Spring系列Springboot整合quarter定时任务,大致分为三个部分:添加jar包、创建一个定时任务的配置类、创建具体执行的任务,希望看完本文后对大家有所帮助。
分类:
编程语言 时间:
2020-10-24 11:51:36
阅读次数:
52
协变 ① 为什么数组是协变的? jdk1.5 之前不支持泛型,,想要为每个数组类型添加通用的 equals方法,所以设计成是协变的。 ② 为什么数组需要在运行时保留类型信息? 由于数组是协变的,利用其多态特性,即 Integer[]的实例对象可以赋给 Number[]类型的变量。则可以向该 Inte ...
分类:
编程语言 时间:
2020-10-24 11:40:34
阅读次数:
30
算是入门pwn的第一道题吧 先拖进ida查看 F5查看伪代码: int __cdecl main(int argc, const char **argv, const char **envp) { char s; // [rsp+1h] [rbp-Fh] puts("please input"); ...
分类:
其他好文 时间:
2020-10-24 10:22:33
阅读次数:
21
Dim A() As StringPrivate Sub Command1_Click()A() = Split(Text1.Text, "-", -1, vbTextCompare)'以“-”将字符串分割后存到一个以下标为0开始的数组里Dim i As IntegerFor i = 0 To UB ...
分类:
编程语言 时间:
2020-10-24 09:56:17
阅读次数:
27
1 n = int(input('Input an integer: ')) 2 if n == 2: 3 print('Yes') 4 elif n % 2 == 0: 5 print('No') 6 else: 7 m = n % 6 8 #因为大于5的素数必然出现在6的倍数两侧 9 #6x+2 ...
分类:
编程语言 时间:
2020-10-18 16:27:09
阅读次数:
15
Given an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in s will be separated by ...
分类:
其他好文 时间:
2020-10-18 10:19:49
阅读次数:
29
Description Xiaoqiang wrote a decimal number \(X\), but some of the handwriting has been blurred (we replaced it with ?). Now given another decimal nu ...
分类:
其他好文 时间:
2020-10-18 10:17:30
阅读次数:
29