Example

public class ClassA {

public void method() {
char a;
int i;
}
}
Solution
In the example the local variables inside the 'method' has not been declared at their declaration statement.All local cariables should be inialized when they are declared
Example

public class ClassA {

public void method() {
char a='a';
int i=5;
}
}