Write an application that can hold eight integers in an array. Display the integers from first to last, and then display the integers from last to first. Save the file as Eightlnts.java. Solution import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be \"Main\" only if the class is public. */ class EightInts { public static void main (String[] args) { // your code goes here int[] myarray={1,2,3,4,5,6,7,8}; System.out.println(\"display first to last\"); for (int i = 0; i < myarray.length; i++) { System.out.println(myarray[i] + \" \"); } System.out.println(\"display last to first\"); for (int j=7;j>=0;j--) { System.out.println(myarray[j] + \" \"); } } } output: .