Another question please give me an answer with methord - TopicsExpress



          

Another question please give me an answer with methord :) 1.Consider the following segment of a program public class Ex33{ public static void main(String args[]){ int numAr[] = {6,7,8,9}; for(int k = 0 ; k < numAr.length ; k++){ if(numAr[k] % 2 == 0) numAr[k] = 10; } for(int k = 0 ; k < numAr.length ; k++) System.out.print(numAr[k]); } } What will the output of the program be? I. 6,7,8,9 II. 6789 III. 9876 IV. 107109 V. 10101010
Posted on: Thu, 28 Aug 2014 12:44:43 +0000

Trending Topics



Recently Viewed Topics




© 2015