[TOC] 本周计划 对项目进行完善总结 增加对BouncyCastle、Certificate、CertificateFactory的认识 尝试使用Junit对部分代码进行单元测试 学习记录 代码优化 代码结构 代码细节处理 scanner.nextLine(),一次读入一行,方便后续equal判 ...
分类:
其他好文 时间:
2020-05-01 20:43:37
阅读次数:
62
目录 ? 23 种设计模式——创建型设计模式(5种) ? 23 种设计模式——结构型设计模式(7种) ? 23 种设计模式——行为型设计模式(11种) 3. 结构型设计模式 结构型模式描述如何将类或对象按某种布局组成更大的结构。它分为类结构型模式和对象结构型模式,前者采用继承机制来组织接口和类,后者 ...
分类:
其他好文 时间:
2020-05-01 14:57:01
阅读次数:
76
import java.util.Arrays;/** * 归并排序(MERGE-SORT)是建立在归并操作上的一种有效的排序算法,该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。 * 将已有序的子序列合并,得到完全有序的序列;即先使每个子序列有序,再使子序列段间有序 ...
分类:
编程语言 时间:
2020-05-01 12:52:14
阅读次数:
61
Q151. An organization is planning to setup a management network on the AWS VPC. The organization is trying to secure the webserver on a single VPC ins ...
分类:
其他好文 时间:
2020-04-30 19:02:43
阅读次数:
77
Description Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the following process: Starting with any p ...
分类:
移动开发 时间:
2020-04-30 13:32:04
阅读次数:
91
相等的比较: 值相等和引用相等。 值相等:两个值在某种意义上是想等的。 引用相等:两个引用指向完全相同的对象。 默认情况下: 值类型使用值相等。 引用类型使用引用相等。 1.标准等值比较协议 ==和!= object对象Equals虚方法 IEquatble<T>接口 ==和!= 很多的例子中都使用 ...
switch Java7开始,switch的参数可以是String类型了,这真的是一个很有用的改进,毕竟string还是挺常用的。到目前为止,switch支持的参数类型有: 、`short int char String enum`。switch对各种类型参数的支持到底是怎么实现的呢? byte、s ...
分类:
编程语言 时间:
2020-04-29 09:11:59
阅读次数:
83
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×105 with ...
分类:
其他好文 时间:
2020-04-27 11:23:14
阅读次数:
43
字符串之间的比较使用equal(); 字符串.equals();把肯定有的字符串写在前面,变量写在后面 ...
分类:
其他好文 时间:
2020-04-26 17:17:07
阅读次数:
50
Given a linked list and a target value T, partition it such that all nodes less than T are listed before the nodes larger than or equal to target valu ...
分类:
其他好文 时间:
2020-04-26 09:21:42
阅读次数:
55