Problem category: Compile-time Problems
Diagnosis Difficulty: Easy
Difficulty to Fix: Easy
Java is case sensitive, as well as spelling sensitive. So, the following would all be viewed as different variables in Java:
double value; double Value; double valeu;
Error Message
Usually Java will complain about a missing declaration. However, you will have to check the spelling/case of both the definition and the usage as either of these could be the problem.
public class Test { public static void main(String[] args) { double Value; value = 3; } }
Test.java:6: cannot find symbol
symbol : variable value
location: class Test
value = 3;
symbol : variable value
location: class Test
value = 3;
Determine which item is misspelled (or in the wrong case), and fix it.
public class Test { public static void main(String[] args) { double value; value = 3; } }