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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started