我的LeetCode:https://leetcode cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 946. 验证栈序列 题目 给定?pushed?和?poppe ...
分类:
其他好文 时间:
2020-05-12 14:04:09
阅读次数:
192
package dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.S ...
分类:
其他好文 时间:
2020-05-12 13:38:29
阅读次数:
57
方法 ReflectionToStringBuilder.toString(user, ToStringStyle.SHORT_PREFIX_STYLE); 示例 package com.harara.test; import org.apache.commons.lang.builder.Refl ...
分类:
编程语言 时间:
2020-05-12 11:21:26
阅读次数:
163
1.compile,编译命令,会在你的项目路径下生成一个target目录,在该目录中包含一个classes文件夹,里面全是生成的class文件及字节码文件。 2.package,这个命令会在你的项目路径下一个target目录,并且拥有compile命令的功能进行编译,同时会在target目录下生成项 ...
分类:
其他好文 时间:
2020-05-12 11:17:21
阅读次数:
64
Springboot 配置接口文档swagger 往期推荐 SpringBoot系列(一)idea新建Springboot项目 SpringBoot系列(二)入门知识 springBoot系列(三)配置文件详解 SpringBoot系列(四)web静态资源配置详解 SpringBoot系列(五)My ...
分类:
编程语言 时间:
2020-05-11 15:49:24
阅读次数:
74
1 package cn.htu.test; 2 /** 3 * 分析: 4 * 设n个元素的集合可以划分为S(n,m)个不同的由m个非空子集组成的集合。 5 S(n,m)的两种情况: 6 一种是独自组成一个集合,另一种是和别的元素混在一起。 7 对於第一种情况,等价于把前n-1个元素分成m-1份, ...
分类:
编程语言 时间:
2020-05-11 13:38:55
阅读次数:
110
一. 二维数组遍历 package test_1; public class test_7 { public static void main(String[] args) { int[][] arr = {{1,2,3},{5,6},{12,13,14}}; for(int i=0; i< arr ...
分类:
编程语言 时间:
2020-05-10 21:34:59
阅读次数:
59
package t1; import java.io.UnsupportedEncodingException;import java.nio.charset.StandardCharsets;import java.security.InvalidKeyException;import java. ...
分类:
编程语言 时间:
2020-05-10 21:27:15
阅读次数:
93
package test_1;//取反public class test_4 { public static void main(String[] args) { int[] arr = {11,22,33,44,55}; reverseArray(arr); //调用取反方法 print(arr) ...
分类:
编程语言 时间:
2020-05-10 18:55:44
阅读次数:
196
1. 在创建类的时候,如果参数过多,我们直接使用构建起创建方法的时候会不知道具体参数代表什么类型.比如: User user = new User("123","123","123","123","123"); 这样不知道具体的参数代表什么,不容易知道要创建什么类型的User,所以我们可以直接使用构 ...
分类:
其他好文 时间:
2020-05-10 15:06:21
阅读次数:
41