Another is the problem of the local variable, a bit not note, this variable will be mistaken,
For example:
1.
For (int I=1; I & lt;=10; I++) {
}
System. The out. Println (I);
Example 2:
For (int I=1; I & lt;=10; I++) {
If (I & gt; 5) {
Int num=10;
}
System. The out. Println (num);
}
System. The out. Println (num);
CodePudding user response:
Self-study or training