java 多线程访问数组求和?答:public class T{ int[] input={100,5,98,77,60,88,36}; int[] output={0,0,0,0,0,0,0}; int curr = 0; public synchronized int getCurr() { if( curr== input.length ) return -1; return curr++; } static class Worker extends Thread { T t; public...