题目内容
阅读下列程序public class Test implements Runnable{private int x=0;private int y=0;boolean flag =true;public static void main (String args[]){Test r =new Test ();thread t1= new thread(r);thread t2= new thread(r);t1.start();t2.start();}public void run(){while(flag){x++;y++;system.out.println("("+x_,","+y+")");if(x>=10){flag=false;}}}下列对程序运行结果描述正确的是()
查看答案
搜索结果不匹配?点我反馈