Ask Question

Write a program that fills out a two dimensional array of size 10 by 10 with random integers ranging from 0 through 99 and then finds out the largest item in the array.

+1
Answers (1)
  1. 22 July, 13:31
    0
    This program is for a 10 by 10 array. It accepts random numbers from 0 to 99.

    Explanation:

    After accepting the number it prints the largest number.

    private static int[] generateArray (int min, int max) {

    Random rd = new Random ();

    int randomSize = min + rd. nextInt (max);

    System. out. println ("Random array size: " + randomSize);

    int[] array = new int[randomSize];

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

    array[i] = min + rd. nextInt (max);

    }

    return array;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a program that fills out a two dimensional array of size 10 by 10 with random integers ranging from 0 through 99 and then finds out ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers