Question: i keep getting this message when i run in java. could someone please help me. i posted original question and program I wrote. 1 public

i keep getting this message when i run in java. could someone please help me. i posted original question and program I wrote.  i keep getting this message when i run in java. could
someone please help me. i posted original question and program I wrote.
1 public class Account \{ 2. private String accountholder; private int accountWumber;

1 public class Account \{ 2. private String accountholder; private int accountWumber; private double balance; public string getAccountholder() f return accountHolder; \} public void setAccountholder(String accountHolder) \& this accountholder = accountholder; f public int getAccounthumber() \& return accounthumber; ) public void setAccounthumber (int accounthumber) \{ this accounttiumber = accounthuaber; public double getBalance() \{ return balance; 7 public void setalance (double balance) ( this balance - bolance; 2523,1 25j public class Account \{ private String accountholder: private int accountikibee: private double balance; public string getAccountholder () } return accountholder; ) public void setAccountholder(String accountholder) ( this. accountholder = accountholder; i) public int getaccounthunber () \&. return accountliuaber: 1 public vold setaccountllunber (int accouatilinber) f this-accountliaber - accounthueber: ) publlic double getealance () ( retiorn balance: ) public yold setsalance (double balance) f 23 this,balance - balance) [G] iGRASp: Mrisage 24 ) (1) No main me1kods, davaf X Applications, applets, or MDiets foubd in file. 22) You main be able to use the "bolds" mesu tar run ia a specitic way. Instructions Write a public Account class meeting the following specifications: 1. The Account should have three fields: String accountHolder which hoids the name of the account holder. int accountNumber which holds the account number. and double balance which holds the current balance. 2. The Account class should have get and set methods for all fields. Write a public Accountrest class that has a main method and does the following: 1. Creates two Account objects. 2. Uses the set methods in the Account objects to set the values of all fields in both Account objects. 3. Uses the set methods in the Account objects to print the values of all fields in both Account objects. Submit the two Java files containing your source code

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!