【推荐】集合初始化时,指定集合初始值大小。 说明:HashMap 使用 HashMap(int initialCapacity) 初始化, 正例:initialCapacity = (需要存储的元素个数 / 负载因子) + 1。注意负载因子(即 loader factor)默认为 0.75,如果暂时 ...
分类:
其他好文 时间:
2021-02-16 12:43:16
阅读次数:
0
hashMap的四种遍历方式 使用entrySet返回包含entry的Set集合再遍历 Map<String,String> map=new HashMap<>(); map.put("1","stu01"); map.put("2","stu02"); Set<Entry<String,Strin ...
分类:
其他好文 时间:
2021-02-16 12:33:39
阅读次数:
0
for in 和for of的区别:https://www.cnblogs.com/zjx304/p/10687017.html 1 遍历数组通常用for循环 ES5的话也可以使用forEach,ES5具有遍历数组功能的还有map、filter、some、every、reduce、reduceRig ...
分类:
其他好文 时间:
2021-02-16 12:23:46
阅读次数:
0
<!--Jackson JSON乱码问题配置--> <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.converter.St ...
分类:
编程语言 时间:
2021-02-16 11:57:16
阅读次数:
0
Git commit --amend 修改文件1.txt, 然后add, commit; 然后: case1: git commit --amend,可以修改上次commit信息(一般修改message说明信息); case2: 继续修改1.txt, 也可以增加新的文件等,然后,git add一下, ...
分类:
其他好文 时间:
2021-02-15 12:22:35
阅读次数:
0
1.jackson的使用 乱码问题解决 注解@ResponseBody直接将方法的返回值 传到当前网页上 不需要去走视图解析器 问题解决 在注解ResponseMapping那里改为这个 或者可以更懒一点 直接在配置文件中声明 <mvc:annotation-driven> <mvc:message ...
分类:
编程语言 时间:
2021-02-15 12:03:04
阅读次数:
0
#include<bits/stdc++.h> using namespace std; const int maxn=1e5+100; const int inf=1e9; int n,m,x; int dep[maxn];//节点在第几层 int num[maxn];//每一层的节点个数 int ...
分类:
其他好文 时间:
2021-02-15 11:49:10
阅读次数:
0
Security and Cryptography in Python - Block Cipher(2) Double DES from pyDes import * import random message = "01234567" key_11 = random.randrange(0, 2 ...
分类:
编程语言 时间:
2021-02-10 13:31:04
阅读次数:
0
在围绕Hadoop形成的大数据技术生态当中,MapReduce的地位,在早期是处于核心地位的,但是伴随着数据处理实时性需求的不断提升,更多新的计算框架出现,MapReduce的地位受到压制,但是作为Hadoop原始计算框架,还是需要相应程度的了解和掌握的。今天的大数据入门分享,我们来具体讲一讲Map ...
分类:
其他好文 时间:
2021-02-09 12:33:28
阅读次数:
0
满足下面两个条件中的任意一个即为高阶函数: 一个函数可以作为参数传给另外一个函数 一个函数的返回值为另外一个函数(若返回值为该函数本身,则为递归) 常见的高阶函数如下: 1.map函数 2.filter函数 3.reduce函数 4.zip函数 5.纯函数和函数的副作用 6.lambda表达式 ...
分类:
其他好文 时间:
2021-02-09 12:14:24
阅读次数:
0