摘要:
package Writer; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class Demo1 { public static void main(String[] args){ /** * 字符流:我们能读懂的就是字符流,... 阅读全文
posted @ 2018-07-26 22:48
侯小铁柱
阅读(549)
评论(0)
推荐(0)
摘要:
package map; public class differentDemo { /** * map和Collection集合的区别 * map集合是键值对的集合 Collection是单一出现数据的聚合 * Map的键是唯一的,而collection的子接口List集合中的元素是可以重复的,set是唯一的 * map是夫妻对,colle... 阅读全文
posted @ 2018-07-26 22:24
侯小铁柱
阅读(194)
评论(0)
推荐(0)
摘要:
package file; import java.io.File; public class FileDemo { public static void main(String[] args) { File file = new File("C:\\Users\\侯江涛\\Desktop\\java异常例子"); // 输出的就是路径 ... 阅读全文
posted @ 2018-07-26 22:21
侯小铁柱
阅读(134)
评论(0)
推荐(0)
摘要:
package day_54; import java.util.Set; import java.util.TreeSet; public class ComparetoDemo { public static void main(String[] args) { Student s = new Student(1,1); Student s1 = ... 阅读全文
posted @ 2018-07-26 22:19
侯小铁柱
阅读(625)
评论(0)
推荐(0)
摘要:
public class Systemfinally { public static void main(String[] args) { //获取1970年到至今的毫秒数 System.currentTimeMillis(); //退出jvm后面的东西不会得到执行 System.exit(0); ... 阅读全文
posted @ 2018-07-26 22:18
侯小铁柱
阅读(123)
评论(0)
推荐(0)
摘要:
import java.util.Enumeration; import java.util.Vector; public class Vectorfinall { public static void main(String[] args) { // 这个是线程同步的 Vector v = new Vector(); //枚举 ... 阅读全文
posted @ 2018-07-26 22:17
侯小铁柱
阅读(127)
评论(0)
推荐(0)
摘要:
import java.util.ArrayList; import java.util.List; import java.util.ListIterator; public class ListFianll { public static void main(String[] args) { //创建一个list集合 List list = new ... 阅读全文
posted @ 2018-07-26 22:15
侯小铁柱
阅读(147)
评论(0)
推荐(0)
摘要:
import java.util.HashSet; import java.util.Set; public class HashDemo { public static void main(String[] args) { /** *set的特点: * * 无序性 * 不能重复 ... 阅读全文
posted @ 2018-07-26 22:14
侯小铁柱
阅读(131)
评论(0)
推荐(0)
摘要:
import java.util.Date; public class Datefinally { public static void main(String[] args) { Date date = new Date(); //打印的不是地址,肯定是重写了toString方法 System.out.println(date); ... 阅读全文
posted @ 2018-07-26 22:12
侯小铁柱
阅读(1177)
评论(0)
推荐(0)
摘要:
public class Collectionfinally { public static void main(String[] args) { Collection list = new ArrayList(); /** * Collection : ... 阅读全文
posted @ 2018-07-26 22:10
侯小铁柱
阅读(183)
评论(0)
推荐(1)

浙公网安备 33010602011771号