一、Arrays类 import java.util.Arrays; /* java.util.Arrays是一个数组有关的工具类,里面提供大量静态方法 public static String toString(数组):数组转为字符串 public static void sort(数组):将数组 ...
分类:
编程语言 时间:
2020-06-08 22:07:27
阅读次数:
72
1.处理流程 获取数据源 -> 数据转换 -> 获取结果 2.获取stream对象 (1)从集合或者数组中获取 Collection.stream(),如accounts.stream() Collection.prarallelStream() 获取并行Stream对象 Arrays.stram( ...
分类:
编程语言 时间:
2020-06-08 21:01:11
阅读次数:
101
在前面一篇博客中我们已经学完了redis的五种数据类型操作,回顾一下,五种操作类型分别为:字符串类型(string)、列表类型(list)、散列类型(hash)、集合类型(set)、有序集合类型(sorted_set)。学完基础语法操作后下一步就是通过几个案例来实践操作一下redis。在这里不会采用 ...
分类:
其他好文 时间:
2020-06-08 20:40:08
阅读次数:
112
class Solution(object): def kWeakestRows(self, mat, k): """ :type mat: List[List[int]] :type k: int :rtype: List[int] """ power = [sum(line) for line ...
分类:
其他好文 时间:
2020-06-08 14:49:39
阅读次数:
59
Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop o ...
分类:
其他好文 时间:
2020-06-08 00:29:09
阅读次数:
53
Headers <algorithm> <vector> <array> <list> <stack> <queue> <set> <map> <unordered_set> <unordered_map> <string> <iterator> <utility> <tuple> <numeric ...
分类:
编程语言 时间:
2020-06-07 21:34:14
阅读次数:
88
常用类 Arrays Arrays 类包含用于操作数组的各种方法(例如排序和搜索)。还包含一个静态工厂,允许将数组转为 List。 方法 描述 List asList(T... a) 返回由指定数组构造的 List void sort(Object[] a) 对数组进行排序 void fill(Ob ...
分类:
编程语言 时间:
2020-06-07 21:25:44
阅读次数:
107
Druid 是阿里巴巴开源平台上一个数据库连接池实现,是一个高效的数据查询系统,主要解决的是对于大量的基于时序的数据进行聚合查询 环境 SpringBoot 1.5.20 + Mysql5.6 + Druid1.1.6 DruidDataSource 基本配置参数 配置 默认值 说明 name 配置 ...
分类:
编程语言 时间:
2020-06-07 21:19:29
阅读次数:
79
java中对数组进行排序 使用Array.sort() 这个默认是升序 @Test public void index4(){ int scores[] = new int[]{1,2,3,89,4}; Arrays.sort(scores); for (int i:scores ) { Syste ...
分类:
编程语言 时间:
2020-06-07 19:17:31
阅读次数:
205
package LeetCode_1143 /** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two str ...
分类:
其他好文 时间:
2020-06-07 12:48:01
阅读次数:
57