摘要: package test;import java.io.*;import java.lang.*;import java.util.*;class tThread extends Thread { public tThread(String st) { super(st); } public void run(){ for (int i = 0; i < 10; ++i){ System.out.println(i + " " + this.getName()); try{ this.sleep((int)Math.random()*10); } catch(Exce 阅读全文
posted @ 2012-11-29 15:28 E_star 阅读(357) 评论(0) 推荐(0) 编辑
摘要: import java.io.*;import javax.swing.*;import java.lang.*;import static javax.swing.JFrame.*;public class Main { public static void main(String args[]) { try { String t[] = { "小明,男,20", "小红,女,21", "小刚,男,29" }; FileWriter fr = new FileWriter("A.txt");//这里也可以用Fil 阅读全文
posted @ 2012-11-29 10:59 E_star 阅读(783) 评论(0) 推荐(0) 编辑