class Consumer implements Runnable{
private Info info;
public Consumer(Info info){
this.info=info;
}
public void run(){
for(int i=0;i<50;i++){
this.info.get();
}
}
}
class ThreadTest_02{
public static void main(String[] args){
Info info=new Info();
Producer p=new Producer(info);
Consumer c=new Consumer(info);
new Thread(p).start();
new Thread(c).start();
}
}