摘要: 恢复内容开始 1 package cn.yschung.copyfile; 2 3 import java.io.FileInputStream; 4 import java.io.FileNotFoundException; 5 import java.io.FileOutputStream; 6 阅读全文
posted @ 2018-08-09 11:58 BiuBiu丶 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.yschung.demo; 2 3 import java.util.Arrays; 4 import java.util.HashMap; 5 import java.util.Set; 6 7 public class StirngDemo { 8 9 public static void main(String[] args) { ... 阅读全文
posted @ 2018-07-26 11:24 BiuBiu丶 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 方式一. 方式二. 阅读全文
posted @ 2018-07-25 11:02 BiuBiu丶 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.arraylist.com; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 6 public class ArrayListDemo2 { 7 8 public static void main(String[] args) { 9 // TO... 阅读全文
posted @ 2018-07-16 11:45 BiuBiu丶 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.arraylist.com; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 /* 6 * 集合去除相同元素原理:用集合和空集合对比,遍历集合>>如果空集合中没有有当前元素,则把当前元素添加到空集合中, 7 * 最后遍历新集合 8 */ 9 public class ... 阅读全文
posted @ 2018-07-16 10:52 BiuBiu丶 阅读(253) 评论(0) 推荐(0) 编辑
摘要: package cn.collection.com; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.ListIterator; public class ListDemo4 { public static void main(String[... 阅读全文
posted @ 2018-07-13 16:50 BiuBiu丶 阅读(4799) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.collection.com; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 import java.util.List; 6 7 public class ListDemo3 { 8 9 public static void main(String[] ar... 阅读全文
posted @ 2018-07-13 11:25 BiuBiu丶 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.check.com; 2 3 import java.util.Arrays; 4 5 public class TestDemo { 6 7 public static void main(String[] args) { 8 // TODO Auto-generated method stub 9 St... 阅读全文
posted @ 2018-07-10 17:26 BiuBiu丶 阅读(276) 评论(0) 推荐(0) 编辑
摘要: package cn.check.com; public class RegexDemo { public static void main(String[] args) { // TODO Auto-generated method stub String s = "aa,bb,cc"; String[] sp = s.split("... 阅读全文
posted @ 2018-07-10 16:52 BiuBiu丶 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.check.com; 2 3 import java.util.Scanner; 4 5 public class AgeDemo { 6 7 public static void main(String[] args) { 8 // TODO Auto-generated method stub 9 St... 阅读全文
posted @ 2018-07-10 16:26 BiuBiu丶 阅读(136) 评论(0) 推荐(0) 编辑