up-446687-dt-content-rid-119240044 1/cours Create a project named FA2018_LAB3PAR
ID: 3750187 • Letter: U
Question
up-446687-dt-content-rid-119240044 1/cours Create a project named FA2018_LAB3PART2_yourLastName -add a data type class named Account_yourLastName, CheckingAccount_yourlastName and SavingAccount_yourlastName (you can re- use the classes from lab2) -add driver class named Demo_ArrayList_yourLastName 1. Create an ArrayList structure 2. Insert 50 numbers from 0 to 51 to the ArrayList 3. Promp to allow users to insert 3 account that can be checking account or saveing account to the ArrayList 4. Insert numbers from 52 to 99 to the ArrayList 5. Display the size of ArrayList 6. Delete an object at index 52 then display the size 7. Fetch and print out the information of the node at index 25 (temp) and the node at index 52 (temp1) To verify if ArrayList is encapsulated: modify the service fee or interest rate the node temp1 that is fetched above, then fetch the node at index 52 again (temp2). Compare the modified information of temp1 and temp2. If the information are different display message box: "Java ArrayList is encapsulated" 8. Message Java ArrayList is encapsulatedExplanation / Answer
package FA2018_LAB3PART2_yourlastname; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import static javafx.scene.input.KeyCode.T; public class Demo_ArrayList_yourlastname { public static final List arraystructure= new ArrayList(); public void insert(){ for(int i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.