- 博客(5)
- 收藏
- 关注
原创 java8 时间类
时间类java8 package day20; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Time { public static void main(String[] args) { // TODO Auto-generated method stub
2017-08-12 20:00:57 342
原创 Properties类的应用
public class ListTest { @Test public void test3() throws IOException{ Properties properties = new Properties(); // 这个方法会自动处理文件, 把文件中的内容全部加载到map集合中 properties.load(new FileInputStream("test.pro
2017-08-12 19:59:20 343 2
原创 java 求最长子串
@Test public void work3() throws Exception { //3 获取两个字符串中最大相同子串。比如: // 提示:将短的那个串进行长度依次递减的子串与较长的串比较。 String str1 = "abcwerthelloyuiodef"; String str2 = "cvhellobnm"; int maxLength = str2.len
2017-08-12 19:51:18 529
原创 排序
class Sort2 { //快速排序 public static void quick(int[] arr, int beginIndex, int endIndex) { if (beginIndex >= endIndex) { return; } int keyValue = arr[beginIndex];// 以beginIndex位置的值为键值
2017-08-12 19:49:56 220
原创 Java泛型应用
package myday22; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.junit.Test; public class Te
2017-08-12 19:44:49 191
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人