Question: the second picture is main.java In Main.java, there is a String array with some values in it. Generally speaking, we prefer ArrayLists over arrays. Your

In Main.java, there is a String array with some values in it. Generally speaking, we prefer ArrayLists over arrays. Your task: make an ArrayList and fill it with all the elements of the String array ( use ArrayList.add() ). Print out the ArrayList by making a call to Arraytist.tostring() at the end. Keep in mind ArrayList.tostring() only returns a String. import public class Main { public static void main(String[] args) { Il write your solution here String[] stringArray = {"sysc2004", "sysc3310", "sysc4906", "sysc2006"}; Il print here }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
