package LeetCode_279 import java.util.* import kotlin.collections.HashSet /** * 279. Perfect Squares * https://leetcode.com/problems/perfect-squares/d ...
分类:
其他好文 时间:
2020-07-17 01:15:12
阅读次数:
72
1 判断集合元素唯一的原理 1.1 ArrayList的contains方法判断元素是否重复原理 ArrayList的contains方法会使用调用方法时,传入的元素的equals方法依次与集合中的旧元素所比较,从而根据返回的布尔值判断是否有重复元素。此时,当ArrayList存放自定义类型时,由于 ...
分类:
编程语言 时间:
2020-07-15 22:50:31
阅读次数:
68
一,引用ocelot,本文测试16版本有BUG,只好使用15.0.7 二,startup的配置,很简单,就是注册和添加管道 using System; using System.Collections.Generic; using System.Linq; using System.Threadin ...
分类:
Web程序 时间:
2020-07-15 10:44:39
阅读次数:
92
MongoDB终极文档 端口:27017默认 MongoDB中的概念 使用了不存在的对象即创建对象 Json结构存储 MySQL MongoDB database database tables collections column field row Documents 数据类型 ObjectID ...
分类:
数据库 时间:
2020-07-15 01:24:49
阅读次数:
65
项目结构 注意:需要引入NPOI类库 C#代码 Form1.cs using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Comp ...
//给aqi升序排,null放到最后 Collections.sort(list,new Comparator<Map<String,Object>>() { @Override public int compare(Map<String, Object> o1, Map<String, Objec ...
分类:
编程语言 时间:
2020-07-14 15:02:24
阅读次数:
136
[Java 实例 - List 元素替换 Java 实例以下实例演示了如何使用 Collections 类的 replaceAll() 来替换List中所有的指定元素:Main.java 文件 import java.util.*; public class Main { public static... ...
分类:
编程语言 时间:
2020-07-13 21:46:49
阅读次数:
105
何为同步容器:可以简单地理解为通过 synchronized 来实现同步的容器,如果有 多个线程调用同步容器的方法,它们将会串行执行。比如 Vector,Hashtable, 以及 Collections.synchronizedSet,synchronizedList 等方法返回的容器。 可以通过 ...
分类:
其他好文 时间:
2020-07-12 18:28:12
阅读次数:
56
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=18 实例练习一(创建一个柱的族) using System; using System.Collections.Generic; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-07-12 16:24:00
阅读次数:
82
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=13 TaskDialog任务对话框 任务对话框的控件 任务对话框 任务对话框执行结果 实例练习一 using System; using System.Collections.Generic; u ...