From 01a35324842a23a9b49af068d27d22c6a9c10246 Mon Sep 17 00:00:00 2001 From: Chyanne Haugen <42098386+crhaugen@users.noreply.github.com> Date: Sun, 4 Nov 2018 23:07:10 -0800 Subject: [PATCH] fixed spacing in loops (#21571) --- guide/english/java/loops/control-statements/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/java/loops/control-statements/index.md b/guide/english/java/loops/control-statements/index.md index 10903f7de8..78756cebb4 100644 --- a/guide/english/java/loops/control-statements/index.md +++ b/guide/english/java/loops/control-statements/index.md @@ -14,7 +14,7 @@ The 'break' control statement breaks out of the loop when the condition is met. For example, in the loop below if i reaches 5, the loop breaks, so it does not continue on. ```java -for(int i=0;i<10;i++){ +for(int i=0; i < 10; i++){ if(i == 5){ //if i is 5, break out of the loop. break; @@ -33,7 +33,7 @@ Output: The 'continue' control statement is the less intense version of 'break'. It only breaks out of the current instance of the loop and continues on. In the loop below, if i is 5, the loop continues, so it will skip over the print statement below and move on until i reaches 10 and the loop stops. ```java -for(int i=0;i<10;i++){ +for(int i=0; i < 10; i++){ if(i == 5){ //if i is 5, break out of the current instance loop. continue;