Question: public class displayAccounts { public static void main(String[] args) { System.out.print(displayAccounts(david, 101, 120, 151, 115, .035)); } public static void displayAccounts(String name, int ckAccount, double

public class displayAccounts { public static void main(String[] args) { System.out.print(displayAccounts("david", 101, 120, 151, 115, .035)); }

public static void displayAccounts(String name, int ckAccount, double ckdeposit, int svAccount, double svdeposit, double interestRate) { return ("%-10s%-10s%-10s ", "Checking Acct:" + ckAccount, " Savings Acct:" + svAccount, " Estimated Savings balance in 1 Year"); return ("%-10s%-10s%-10s ", "deposit: "+ ckdeposit , " deposit:" + svdeposit," " + interestRate); // Return result }

im trying to get a table to print from the main method, this is what i have so far. Anyone know to make this work for java?

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!