Purchase Solution

Java Mortgage Calculator: Debugging A Conversion Exception

Not what you're looking for?

Ask Custom Question

I tried your code and this is what I got. I am using Net Beans 7.0.1

Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '1'
at java.util.Formatter.checkText(Formatter.java:2547)
at java.util.Formatter.parse(Formatter.java:2533)
at java.util.Formatter.format(Formatter.java:2469)
at java.util.Formatter.format(Formatter.java:2423)
at java.lang.String.format(String.java:2845)
at week3.pkg1.Week31.main(Week31.java:35)
Java Result: 1
It did not show any syntax errors or anything like that, so I am not sure what the problem is. Any help is greatly appreciated.

Attachments
Purchase this Solution

Solution Summary

The expert examines debugging a conversion exception for a Java mortgage calculator.

Solution Preview

Hi,

I wrote the program. Since your post is related to the previous one, I don't think you should be charged for this new post. So talk to any representatives at BrainMass.

If you have any ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C# variables and classes

This quiz contains questions about C# classes and variables.

Javscript Basics

Quiz on basics of javascript programming language.