上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: public class Test implements Runnable{ public static void main(String[] args) { // TODO Auto-generated method stub Test t = new Test(); Thread tA = new Thread(t); ... 阅读全文
posted @ 2019-04-03 18:41 小小超plus 阅读(281) 评论(0) 推荐(0) 编辑
摘要: public class ThreadSafeTest implements Runnable{ int num =10; public void run() { while (true) { synchronized ("") { if(num>0){ try { ... 阅读全文
posted @ 2019-04-03 18:34 小小超plus 阅读(125) 评论(0) 推荐(0) 编辑
摘要: public class PriorityTest extends JFrame{ private static final long seriaVersionUID = 1L; private Thread threadA; private Thread threadB; private Thread threadC; private Thread t... 阅读全文
posted @ 2019-04-03 18:25 小小超plus 阅读(211) 评论(0) 推荐(0) 编辑
摘要: public class JoinTest extends JFrame { private Thread threadA; final JProgressBar progressBar = new JProgressBar(); public JoinTest() { // TODO Auto-generated constructor stub ... 阅读全文
posted @ 2019-04-03 17:43 小小超plus 阅读(101) 评论(0) 推荐(0) 编辑
摘要: public class JoinTest extends JFrame { private Thread threadA; private Thread threadB; final JProgressBar progressBar = new JProgressBar(); final JProgressBar progressBar2 = new JPro... 阅读全文
posted @ 2019-04-03 17:34 小小超plus 阅读(131) 评论(0) 推荐(0) 编辑
摘要: public class SleepMethodTest extends JFrame { private Thread t; private static Color[] color = { Color.BLACK, Color.BLUE, Color.CYAN, Color.GREEN, Color.ORANGE, Color.YELLOW, Col... 阅读全文
posted @ 2019-04-03 12:19 小小超plus 阅读(140) 评论(0) 推荐(0) 编辑
摘要: public class SwingAndThread extends JFrame{ private JLabel jl = new JLabel(); private static Thread t; private int count =0; private Container container = getContentPane(); ... 阅读全文
posted @ 2019-04-03 11:24 小小超plus 阅读(270) 评论(0) 推荐(0) 编辑
摘要: List<String> l1 = new ArrayList<String>(); l1.add("成员"); List<?>l2 = l1; List<?>l3 = new LinkedList<Integer>(); System.out.println(l2.get(0)); List<?> 阅读全文
posted @ 2019-04-03 10:26 小小超plus 阅读(147) 评论(0) 推荐(0) 编辑
摘要: public class LimitClass { public static void main(String[] args) { LimitClassl1 = new LimitClass(); LimitClassl2 = new LimitClass(); //LimitClass l3 = new L... 阅读全文
posted @ 2019-04-03 10:21 小小超plus 阅读(350) 评论(0) 推荐(0) 编辑
摘要: public class MutiOverClass { public Map m = new HashMap(); public void put(K k,V v) { m.put(k, v); } public V get(K k) { return m.get(k); } public s... 阅读全文
posted @ 2019-04-03 10:09 小小超plus 阅读(734) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页