1、 JAVA8的主要变化 ? 新日期API? 函数式编程 ? 语法改进: lambda表达式,方法引用,默认方法… ? 新的类库: Stream, Optional… ? 已有API增强: collections..comparator? Concurrent ? LongAdder & Long ...
分类:
编程语言 时间:
2021-03-02 11:56:11
阅读次数:
0
ThreadPoolExecutor介绍 通过 ThreadPoolExecutor 创建线程池,API 如下所示: public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUn ...
分类:
编程语言 时间:
2021-03-02 11:49:07
阅读次数:
0
public static void main(String[] args) { int num1 = 10_0000_0000; int rate = 20; long total = num1 * rate; System.out.println(total);// 输出为-1474836480 ...
分类:
其他好文 时间:
2021-03-01 14:18:24
阅读次数:
0
Angel图算法 [2.0]CommonFriends 计算两个好友的共同好友数,某种程度上可以刻画两个节点之间的紧密程度。 输入 输入数据路径:输入文件所在路径,无权网络数据, 数据格式为两列 srcId(long) | dstId(long), 其中|为分隔符,分隔字段表示空白符或者逗号等。 输 ...
分类:
编程语言 时间:
2021-03-01 13:31:13
阅读次数:
0
call plug#begin('~/.vim/plugged')""Plug 'itchyny/lightline.vim'"Plug 'Yggdroot/LeaderF', { 'dir': '~/LeaderF', 'do': './install --all' }" Plug 'junegu ...
分类:
系统相关 时间:
2021-03-01 13:04:40
阅读次数:
0
/// <summary> /// 运行时间 /// </summary> [ProtoMember(46)]public long WorkTime; Stopwatch stopwatch = new Stopwatch(); // 记录运行时间stopwatch.Start();。。。// 运 ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef ...
分类:
编程语言 时间:
2021-02-27 13:27:43
阅读次数:
0
一、流程控制 while循环:只要条件满足一直循环 read -p "请输入一个数字:" white_data while [ ${white_data} -lt 20 ] do echo ${white_data} white_data=$((white_data + 1)) done until ...
分类:
系统相关 时间:
2021-02-27 13:22:57
阅读次数:
0
1 类型转换 ? 由于Java是强类型语言,所以要进行有些运算的时候,需要用到类型转换。运算中,不同类型的数据先转换为同一类型,然后进行运算。 低 高 byte,short,char > int > long > float > double 1.1 强制转换 由高到低 (类型)变量名 // 强制转 ...
分类:
编程语言 时间:
2021-02-27 13:11:10
阅读次数:
0
同一个nginx配置文件,请求不同的域名可以指定对应的目录 nginx配置 cat long.conf server { listen 80; server_name a.com b.com c.com; location / { root /home/long/$host/; index inde ...
分类:
其他好文 时间:
2021-02-27 13:10:39
阅读次数:
0