class myArray{ public static void main (String[]args){ boolean error = true; int[] myArray=new int [15]; for(int i =0;imyArray[myArray.length-1]){//Why does this not work? System.out.print(myArray[i]+", "); error = false; } } if(error == true){System.out.println("the last number is the largest");} } }