Question: 1 . ) Problem # 1 : ( ArrayLists ) Create a Class to practice with ArrayLists. Call your class PresidentsAA, and store it in

1.) Problem #1: (ArrayLists) Create a Class to practice with ArrayLists. Call your class "PresidentsAA", and store it in a file called "PresidentsAA.java". In this class include just a noargs constructor. Have main start things out by instantiating the class and calling the no-args constructor. In the no-args constructor, first Create an ArrayList for Strings. Fill this list with the names of the first 10 presidents of the U.S. Then ask the user for input. Ask the User which number president that they want to see. If they enter a 3, that means they want to see the name of the 3rd U.S. president. Your code should print out "Thomas Jefferson".
2.) Problem #2: (Vectors) You will need to use the Account Class that you built back in Lab #3 & #4. Pull this Account class into this lab folder, "Lab12". Do not create a new Account class.
Now Create a Class to practice with Vectors. We are going to create a Vector of Account Objects. Create a Class called "AccVector", and store it in a file called "AccVectorjava". Then build your AccVector class that will store Accounts in a Vector. In the main create and add 3 Account objects to your Vector, then print out this Vector. Just make up the data for each Account object that you create.
 1.) Problem #1: (ArrayLists) Create a Class to practice with ArrayLists.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!