Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~176 People Reached
Favorite Forums
Favorite Tags
java x 3
Member Avatar for LoLo

Need help with making this work. I can't get the System.format (prepayment) to work. class Mortgage { static NumberFormat fmat = NumberFormat.getCurrencyInstance(); public static void main(String args[]) { String input_amt = JOptionPane.showInputDialog("Enter loan amount: "); double loanAmount = Double.valueOf(input_amt).doubleValue(); String input_rate = JOptionPane.showInputDialog("Enter rate: "); double interestRate = Double.valueOf(input_rate).doubleValue(); String …

Member Avatar for LoLo
0
118
Member Avatar for LoLo

double prepaymentAmt = Double.valueOf(input_prepayment).doubleValue(); This is what I have and is not working: String message = String.format("Loan Amount:"+" "+fmat.format(loanAmount)+"\n"+ "Interest Rate:"+" "+ interestRate +" %% \n"+ "Term:"+" "+years+" years\n\n")+"\n"+ "Prepayment: "+" "\n";

0
58