hello, just wondering, i have an array which is storing 6 different random numbers. i need to write 4loop after words to determin how many even integers there are, how owuld i go about doin that. heres what i have so far.
'
thnks
public class ArrayLab{
public static void main(String[] args){
int countEven = 0, countBig = 0;
int[] numbers = new int[6];
for(int i = 0; i<numbers.length;i++){
numbers[i] = (int)((25 - 1 + 1) * Math.random() + 1 );
}
}
}


Reply With Quote
Bookmarks