public class Lab5 { private double myArray[] = new double[4]; private int i; private String strArray[] = new String[5]; public void loadArray() { for(i = 0; i < myArray.length; i++) { myArray[i] = i * 2; } } public void displayArray() { for(i = 0; i < myArray.length; i++) System.out.println(myArray[i]); } public void loadStringArray() { for(i = 0; i < strArray.length; i++) strArray[i] = new String(); strArray[0] = "Matt"; strArray[1] = "Sharon"; strArray[2] = "Jason"; strArray[3] = "Shwan"; } public void displayStringArray() { for(i = 0; i < strArray.length; i++) System.out.println(i + " = " + strArray[i]); } public static void main(String[] args) { Lab5 x = new Lab5(); x.loadArray(); x.displayArray(); x.loadStringArray(); x.displayStringArray(); } }