summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-07-01 15:51:55 -0700
committerAdam <adam@adambard.com>2013-07-01 15:51:55 -0700
commitbd7390d7990afc452cb72a720885c49afb617d79 (patch)
tree733c655d6532b248693ec68798a278ad1eb6748a
parentb58a7d9d23220cf1671e592c113d510f7e0df3aa (diff)
Fixes for line length
-rw-r--r--java.html.markdown7
1 files changed, 5 insertions, 2 deletions
diff --git a/java.html.markdown b/java.html.markdown
index 729ff531..ab69d4b4 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -32,7 +32,10 @@ public class LearnJava {
// Use System.out.println to print lines
System.out.println("Hello World!");
- System.out.println("Integer: " + 10 + " Double: " + 3.14 + " Boolean: " + true);
+ System.out.println(
+ "Integer: " + 10 +
+ " Double: " + 3.14 +
+ " Boolean: " + true);
// To print without a newline, use System.out.print
System.out.print("Hello ");
@@ -122,7 +125,7 @@ public class LearnJava {
System.out.println("1+2 = " + (i1 + i2)); // => 3
System.out.println("2-1 = " + (i2 - i1)); // => 1
System.out.println("2*1 = " + (i2 * i1)); // => 2
- System.out.println("1/2 = " + (i1 / i2)); // => 0 (0.5, but truncated towards 0)
+ System.out.println("1/2 = " + (i1 / i2)); // => 0 (0.5 truncated down)
// Modulo
System.out.println("11%3 = "+(11 % 3)); // => 2