From 3a05e44af7b3f9c9d7205754315e8923c96fc02b Mon Sep 17 00:00:00 2001 From: dannyphan2910 <44555233+dannyphan2910@users.noreply.github.com> Date: Fri, 15 Mar 2019 02:24:24 -0400 Subject: [PATCH] Added some information about variable in 'for' loop (#31440) --- guide/english/java/loops/for-loop/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/java/loops/for-loop/index.md b/guide/english/java/loops/for-loop/index.md index 5a0cdd7d61..f10f958e45 100644 --- a/guide/english/java/loops/for-loop/index.md +++ b/guide/english/java/loops/for-loop/index.md @@ -15,7 +15,7 @@ for (variable initialization; boolean expression; increment expression) * `initialization` - Initializes the loop and is executed just once, at the beginning. -You can initialize more than one variable of the same type in the first part of the basic `for` loop declaration; each initialization must be separated by a comma. +You can initialize more than one variable of the same type in the first part of the basic `for` loop declaration; each initialization must be separated by a comma. Remember that the variable(s) declared as the `initialization` will only be used within that `for` loop and nowhere else outside of the loop. * `expression` - Evaluated at the beginning of each iteration. If the `expression` evaluates to `true`, `Statements` will get executed. * `increment` - Invoked after each iteration through the loop. You can increase/decrease the value of variables here. Be sure the increment is working towards the expression value, to avoid an infinite loop.