diff options
author | San Baby Francis <san.baby.francis123@gmail.com> | 2023-09-08 11:05:01 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:35:01 +0800 |
commit | d5e7ada2dc6d0e2b176f9e346622a193036ec56f (patch) | |
tree | 6fb74d31f568fc299aa21f7596cc89ef0de630fa /java.html.markdown | |
parent | 9359cded7a125a3b0b205166e1b350c9f0414ed7 (diff) |
fix code formatting (#4722)
Diffstat (limited to 'java.html.markdown')
-rw-r--r-- | java.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java.html.markdown b/java.html.markdown index 394e0b09..10b2315b 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -317,7 +317,7 @@ public class LearnJava { System.out.println("1/2.0 = " + (i1 / (double)i2)); // => 0.5 // Modulo - System.out.println("11%3 = "+(11 % 3)); // => 2 + System.out.println("11%3 = " + (11 % 3)); // => 2 // Comparison operators System.out.println("3 == 2? " + (3 == 2)); // => false @@ -371,7 +371,7 @@ public class LearnJava { // While loop int fooWhile = 0; - while(fooWhile < 100) { + while (fooWhile < 100) { System.out.println(fooWhile); // Increment the counter // Iterated 100 times, fooWhile 0,1,2...99 @@ -386,7 +386,7 @@ public class LearnJava { // Increment the counter // Iterated 100 times, fooDoWhile 0->99 fooDoWhile++; - } while(fooDoWhile < 100); + } while (fooDoWhile < 100); System.out.println("fooDoWhile Value: " + fooDoWhile); // For Loop |