摘要: 下面是一个单例模式的实现public class Station { private static Station st=new Station(); private int num=10; private Station(){ } public static Station getInstance(){ return st; } public void sell(){ if (st.n... 阅读全文
posted @ 2010-09-26 16:13 白了少年头 阅读(1614) 评论(0) 推荐(2) 编辑