public class Analyst { // Main class constructor. public Analyst() { // Make the Storage object. Storage store = new Storage(); for (int i = 0; i < store.data.length; i++) { for (int j = 0; j < store.data[i].length; j++) { double var = Math.random() * 1000.0; store.data[i][j] = var; } } for (int i = 0; i < store.data.length; i++) { for (int j = 0; j < store.data[i].length; j++) { System.out.println(store.data[i][j] + " "); } System.out.println(""); } double maximum = -1; for (int i = 0; i < store.data.length; i++) { for (int j = 0; j < store.data[i].length; j++) { if (store.data[i][j]> maximum) { maximum = store.data[i][j]; } } } System.out.println(maximum); double minimum = store.data[0][0]; for (int i = 0; i < store.data.length; i++) { for (int j = 0; j < store.data[i].length; j++) { if (store.data[i][j] < minimum) { minimum = store.data[i][j]; } } } System.out.println(minimum); } // Main method. public static void main (String args[]) { new Analyst(); } }