public class RandomNumbersArray { public static void main(String args) { //create integer array with the length of 10 int numArray = new int[10];...

public class RandomNumbersArray {

public static void main(String[] args) {

//create integer array with the length of 10

int[] numArray = new int[10];

//give an initial value of i up to 10

for(int i=0; i <10; i++)

numArray[i] = (int)(Math.random()*100); //creates numbers between 0-100

//display the numArray

for(int i=0; i <10; i++){

System.out.print(numArray[i] + " ");

}

System.out.println();

//display the number of single digit numbers

for(int i = 0; i <10; i++){

int j = numArray[i];

if (j <10){

System.out.print(numArray[i] + " ");

}

}

}