Solved Write A Java Code That Does The Following Arraylist

Solved Write A Java Code That Does The Following Arraylist