Add more printlns to show the values of the variables as they are changed. For example print out the value of line immediately after each readLine() statement.
Type: Posts; User: Norm
Add more printlns to show the values of the variables as they are changed. For example print out the value of line immediately after each readLine() statement.
The problem is the scope of the definition for the variable. The definition is only known within the enclosing pair of {}s. You need to move the definition up until it is at the same nesting level of...
Again check for correctly matching {}s
Definitely, yes.
Where is the Level variable defined? If it is from the Java SE classes, read the API doc to find out what package it is in and add an import for it.
What is on or before line 18?
Make sure the {}s are correctly paired.
You need to tell the compiler where to find the definitions for those classes. You can use an import statement to do that.
Please copy and paste the full text of the errors here if you want help with them.
Why are you using Level and Logger?
Why do you think there is anything wrong with the code?
Can you explain?