First of all, this is a beginner topic and I've marked it as such. Second, I've closed your other duplicate topics (there were two!). It's against the rules to make duplicate posts. Plus it's annoying, and will not get you help any faster. Third, you didn't attach any code, but lucky for you the stack trace is very easy to read:
QUOTE
Exception in thread "main" java.lang.NumberFormatException:
at java.lang.Integer.parseInt(Integer.java:435)
at graphanalyzetool1.writeBtreetoFile(graphanalyzetool1.java:1084)
at graphanalyzetool1.main(graphanalyzetool1.java:62)
The first line tells you that it's a NumberFormatException. The second line tells you where it happened: at java.lang.Integer.parseInt(Integer.java:435). You are trying to call parseInt on a value that cannot be turned into an integer. Put a breakpoint before this line and run a debugger to see what you are trying to pass into that method. If you don't know how to use a debugger, print the value out to the console (std out) to see what you are passing to the parseInt method. Here's an example of different values that you might pass to parseInt and their results
int y = Integer.parseInt(x); // x is a String
if x == "5" then y == 5
if x == " 5" then NumberFormatException is thrown
There's an extra space, which can't be converted to a number
if x == "#" then NumberFormatException is thrown
How can you convert "#" to a number?
This post has been edited by alcdotcom: 17 Aug, 2007 - 06:48 AM