Question: Question 1 (5 points) Suppose that a string named, school, contains the name of your school. Write a code segment that creates an ArrayList, named
Question 1 (5 points) Suppose that a string named, school, contains the name of your school. Write a code segment that creates an ArrayList, named letters, containing strings large enough to hold all the individual letters of the school name and place each letter of the name into the ArrayList, one letter per index. For example, if school contained "DULUTH", your code segment would create ArrayList letters containing [ "D", "U", "L", "U", "T", "H" ] where the "D" is at index 0, etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
