Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want to modify the codes. For the output to be true Accont: ArrayEmception: Bank: BankTest: DuplicateException: MyArray: MyArrayImpl: OutOfSpaceException: This is the photo so

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedI want to modify the codes. For the output to be trueimage text in transcribedimage text in transcribed

Accont:
image text in transcribed
image text in transcribed
ArrayEmception:
image text in transcribed
Bank:
image text in transcribed
BankTest:
image text in transcribed
image text in transcribed
image text in transcribed
DuplicateException:
image text in transcribed
MyArray:
image text in transcribed
MyArrayImpl:
image text in transcribed
image text in transcribed
image text in transcribed
OutOfSpaceException:
image text in transcribed
This is the photo so clear please help me
These is codes in java program using eclipse to solvent, please just make the cod correct, the photo is so clear I photographed all classes in the code, I just want the output to be like in the questions that I Upload his picture
I just want a solution that gives me the same required autput that I attached its image above, only *some* codes need a slight modification
Account: public String tostring() f \} return "Account [ id ="+ id + ", name =" + name + ", balance=" + balance + " ]"; public boolean equals (Object other) \{ \} return this.id ==(( Account ) other )getI(); Qoverride public int compareTo(Account o) \{ I/ TODo Auto-generated method stub if(this.id > o.id) if(this.id >0. return 1; else if(this.id 1 Enter Option (1..5)> 4 Enter Account Information : : Account [id=89, name=uuu, balance=9089.0] Id: 100 Account [id=95, name=ggg, balance=5643. 0] Name: Irr Account [id=100, name=rrr, balance=5689.0] Balance: 5689 Account [id=150, name=ddd, balance=7654.0] Done Welcome to MyBank Welcome to MyBank Press 1 to add an account Press 1 to add an account Press 2 to find an account Press 2 to find an account Press 3 to delete an account Press 3 to delete an account Press 4 to list all accounts Press 4 to list all accounts Press 5 to exit Press 5 to exit Enter Option(1.5)>2 Enter Option (1.5)>1 Enter id to search =95 Enter Account Information: : Account [id=95, name=ggg, balance=5643.0] Id: 89 Welcome to MyBank Name: uuu Press 1 to add an account Balance: 9089 Press 2 to find an account Done Press 3 to delete an account Welcome to MyBank Press 4 to list all accounts Press 1 to add an account Press 5 to exit Press 2 to find an account Enter Option (1..5)>2 Press 3 to delete an account Enter id to search =900 Press 4 to list all accounts Invalid Account ID Press 5 to exit Welcome to MyBank Enter Option (1.5)>1 Press 1 to add an account Enter Account Information : : Press 2 to find an account Id: 150 Press 3 to delete an account Name: ddd Press 4 to list all accounts Balance: 7654 Press 5 to exit Done Enter Option (1.5)>3 Welcome to MyBank Enter id to search =100 Press 1 to add an account. Account is deleted Press 2 to find an account Welcome to MyBank Press 3 to delete an account Press 1 to add an account Press 4 to list all accounts Press 2 to find an account Press 5 to exit Press 3 to delete an account Enter Option (1.5)>1 Press 4 to list all accounts Enter Account Information : : Press 5 to exit Id: 95 Enter Option (1..5) >4 Name: ggg Account [id=89, name=uuu, balance=9089.0] Balance: 5643 Account [id=95, name=ggg, balance=5643.0] Done Account [id=150, name=ddd, balance=7654.0] D module-info.java D Fractionjava D Fractionlmpljava A Fractiontestjava A Accountjava Account.ja backage arraylab; D module-info... D Account.java D Account.java 2 ArrayEmptyE... Mank.java A 1 package arraylab; Project Run Window Help A ArrayEmptyE.. A Bankjava A BankTestjava A DuplicateEx AMyArayjawa MyArraylmpl. x "; eOverride public boolean delete( T value)throws ArrayEmptyException \{ if(isempty ()) throw new ArrayEmptyException("Array is Empty"); int index = find(value); if ( index =1) return false; else\{ for(int i= index; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Briefly discuss the pros and cons of ZBB. LO1

Answered: 1 week ago