上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 111 下一页
摘要: 我是中国人 好的 运行结果 阅读全文
posted @ 2020-09-28 16:00 thomas_blog 阅读(534) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { // TODO Auto-generated method stub Properties properties = new Properties(); String propertiesDir = System.getProperty("user.dir"); ... 阅读全文
posted @ 2020-09-10 13:51 thomas_blog 阅读(164) 评论(0) 推荐(0)
摘要: import java.util.HashMap;public class Test { public Test() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // TODO Auto-generated method stu... 阅读全文
posted @ 2020-09-08 16:09 thomas_blog 阅读(184) 评论(0) 推荐(0)
摘要: package Person;public class Person { String name; int age; public Person() { // TODO Auto-generated constructor stub } public boolean equals(Object obj) { if (this == obj)... 阅读全文
posted @ 2020-09-08 13:10 thomas_blog 阅读(308) 评论(0) 推荐(0)
摘要: 映射中的每一个元素包含一个键对象和一个值对象,键不可以重复,值可以重复import java.util.HashMap;public class Test { public static void main(String[] args) { // TODO Auto-generated method stub HashMap hashMap = new HashM... 阅读全文
posted @ 2020-09-06 23:34 thomas_blog 阅读(136) 评论(0) 推荐(0)
摘要: 集合中的对象不按特定的方式排序,并且没有重复对象import java.util.HashSet;import java.util.Iterator;import java.util.Set;public class Test { public static void main(String[] args) { // TODO Auto-generated method stu... 阅读全文
posted @ 2020-09-06 22:38 thomas_blog 阅读(103) 评论(0) 推荐(0)
摘要: import java.util.ArrayList;public class Test { public static void main(String[] args) { // TODO Auto-generated method stub ArrayList arrayList = new ArrayList(); arrayList.add(... 阅读全文
posted @ 2020-09-06 22:11 thomas_blog 阅读(125) 评论(0) 推荐(0)
摘要: public class MyThread implements Runnable { int i = 0; @Override public void run() { while (true) { synchronized (this) { // TODO Auto-generated method stub ... 阅读全文
posted @ 2020-09-06 14:01 thomas_blog 阅读(154) 评论(0) 推荐(0)
摘要: public class MyThread implements Runnable { @Override public void run() { // TODO Auto-generated method stub for (int i = 0; i < 100; i++) { System.out.println(Thread.cu... 阅读全文
posted @ 2020-09-06 12:46 thomas_blog 阅读(132) 评论(0) 推荐(0)
摘要: public class MyThread extends Thread { public void run() { for (int i = 0; i < 100; i++) { System.out.println("MyThread " + i); try { Thread.sleep(100); ... 阅读全文
posted @ 2020-09-04 23:27 thomas_blog 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 111 下一页