摘要:
1、FileInputStream() // 构建字节输入流对象,参数为文件名 FileInputStream fin = new FileInputStream("message"); System.out.printl... 阅读全文
posted @ 2014-09-10 23:16
shelly双鱼座
阅读(4320)
评论(0)
推荐(0)
摘要:
public class MyThread extends Thread{ private static int ticket=100; public void run(){ for(int i=0;i0) System.out.println... 阅读全文
posted @ 2014-09-10 22:46
shelly双鱼座
阅读(1984)
评论(3)
推荐(1)
摘要:
//单例模式public class Singleton { private static Singleton s; private Singleton(){ } public static Singleton getSingleton(){... 阅读全文
posted @ 2014-09-10 22:36
shelly双鱼座
阅读(374)
评论(0)
推荐(0)