Question: 1 . ) Problem # 1 : ( ArrayLists ) Create a Class to practice with ArrayLists. Call your class PresidentsAA, and store it in
Problem #: 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 noargs constructor. In the noargs constructor, first Create an ArrayList for Strings. Fill this list with the names of the first presidents of the US Then ask the user for input. Ask the User which number president that they want to see. If they enter a that means they want to see the name of the US president. Your code should print out "Thomas Jefferson".
Problem #: Vectors You will need to use the Account Class that you built back in Lab # & # Pull this Account class into this lab folder, "Lab 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 Account objects to your Vector, then print out this Vector. Just make up the data for each Account object that you create.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
