Java - 同步与锁
摘要:
package cn.itcast;import java.util.Stack;class Foo{ private int x=100; public int getX(){ return x; } public int fix(int y){ x=x-y; return x; }}public class Test01 extends Thread { private Foo foo = new Foo(); public static void main(String[] args) {... 阅读全文
posted @ 2013-07-10 23:00 MaxNumber 阅读(199) 评论(0) 推荐(0) 编辑