Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part #1: StudentName Class Design your own class named StudentName The class wil

ID: 3564244 • Letter: P

Question

Part #1: StudentName Class Design your own class named StudentName The class will have a field of type ArrayList .It will also have a String object with your name (e.g. Joe Smith). Your job is to populate the ArrayList with the individual characters in your name So in this case you would add nine Character objects to the ArrayList. So you should write one method to populate the ArrayList - maybe call it Populate() - and you should have one method to cycle through the ArrayList to verify that all the letters got in - maybe call it Display() You will then have a Second ArrayList that you will use to copy each letter in alphabetical order from the first You should have a method called Copy() to do this At the end of the exercise the two ArrayLists will look as follows j e o h e i s j m m l o t s h t

Explanation / Answer

import java.util.ArrayList; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { ArrayList contain = new ArrayList(Arrays.asList("HPDH-1,001, Check-out date: 7/7/7", "JTI-1,001, Check-out date: 7/7/7")); String code = "JTI"; // your loop for (int i = 0; i