Variable x may not have been initialized
March 9th, 2009
Applies to:
NA
Description:
A variable being accessed is not yet initialized
Cause:
An uninitialized variable is being accessed:
int x;
System.out.println(x);
Applies to:
NA
Description:
A variable being accessed is not yet initialized
Cause:
An uninitialized variable is being accessed:
int x;
System.out.println(x);
JAVA-Compiler lrm-00118: syntax error at '=' at the end of input
Initialize the variable before trying to access it.
Example:
int x = 0;
System.out.println(x);