removed code to stop Scope error (#23269)
The print line is trying to call a local variable from the for loop and would result in a error.
This commit is contained in:
@ -30,8 +30,6 @@ for (int iter_For = 0; iter_For < 10; iter_For++)
|
|||||||
System.out.print(iter_For + " ");
|
System.out.print(iter_For + " ");
|
||||||
// Iterated 10 times, iter_For 0,1,2...9
|
// Iterated 10 times, iter_For 0,1,2...9
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("iter_For Value: " + iter_For);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: It is also acceptable to declare a variable within the for loop as a single statement.
|
Note: It is also acceptable to declare a variable within the for loop as a single statement.
|
||||||
|
Reference in New Issue
Block a user