Thank you. It never occurred to me to use the variable I'm defining in the expression that defines it.
A blind spot.
Type: Posts; User: Norm
Thank you. It never occurred to me to use the variable I'm defining in the expression that defines it.
A blind spot.
That is not quite the same as the code shown in the error message:
double cStart = df.format(cStart);
How can you generate the error message shown in post #1?
Can you write some code to generate the error message as posted in #1?
I think that the OP's error message and code do not go together.
My problem is: How do you get that error message with the code posted???
The only solution I can find is:
DecimalFormat df = new DecimalFormat("#.##");
String cStart = "12";
...
The error message texts you posted do NOT go with the code you posted.
This message says the error is at line 43 in the Course.java source file.
When I do a Find for "double cStart =...