The following code doesn't pass compilation. It is giving me this error:
variable h might not have been initialized
public class MnmEx {
public static void main(String[] args) {
int h;
for (int i = 0; i < 50; i++) {
for (int j = 0; j < 50; j++) {
if (j == 10) {
h = 20;
}
}
}
System.out.println(h);
}
}