2010年8月4日
摘要: 1、见空格就隔开Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclass SplitTest {publicstatic String[] aa=new String[20];public SplitTest(){String s ="haha heihei ss dd ff";//aa=s.split("");//中间一定要有空格,不然就会一个字母一个字目隔开了aa=s.split(&q 阅读全文
posted @ 2010-08-04 17:20 snowdrop 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 方法一: 用继承Thread实现实例:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package threadtest13;//多线程的写法2,用两种情况变换,//情况1:新建一个对象,两个线程共享一个对象。另外是新建两个对象,两个线程用两个对象//情况2:int i=0;拿到run()外面与在run()里面两种情况。//上面4种情况可以排列组合试一下publicclass Thread13 {publicstaticvoid mai 阅读全文
posted @ 2010-08-04 11:08 snowdrop 阅读(62852) 评论(0) 推荐(1) 编辑