Download Free Ebooks. Download Self Development Books. Download Comic Books. Download Batman Dark Knight. Download Audiobooks Books. Download Self Help Books. Download Project Management Books.Download Management Books.Download Leadership Development Books. Download Religion and Spirituality Books. Download Soft Skills Development Books. Download Self Finance Books. Download Sales and Marketing Books. Download Business DEvelopment Books.
Tuesday, 22 May 2012
java threads different streams
this code reads numbers from different steam data , and outputs the whole sum. is there something wrong with this code ? how can i fix it ? public class Thr extends Thread{ static int numThr=100, sum=0; private int num; private Thr(int num){this.num =num;} public void run() { int k = IntegerReader.get(num); int count=0; while(k>0) { if(count%numThr==num) sum+=k; count
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment