/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package myarray; /** * * @author Evan */ public class MyArray { /** * @param args the command line arguments */ public static void main(String[] args) { // this makes an easy to read table for the index(subscript) and Value //Each one holds System.out.println("Index\tValue"); int myArray[]={2,4,5,7,9,100,2,3,4,5,6,7,2,3,2,1,1,2}; //Displays what Index and What Values are in it, can go to any size //using the myArray.length for(int counter=0;counter maxValue){ maxValue = myArray[i]; } } return maxValue; } // this finds the lowest value in myArray public static int getMinValue(int[] myArray){ int minValue = myArray[0]; for(int i=1;i