summaryrefslogtreecommitdiffhomepage
path: root/java.html.markdown
diff options
context:
space:
mode:
authorJake Prather <JakeHP@Zoho.com>2013-07-01 07:59:59 -0500
committerJake Prather <JakeHP@Zoho.com>2013-07-01 07:59:59 -0500
commit1863a5de878d527ade6d15f0e4c4ad92695c054d (patch)
tree1d8b227172597052d8aa8fcd19448b62483cbf88 /java.html.markdown
parent2d6ed6d0832b12b7463f391b80a2fbd9dd9466ae (diff)
Text fix.
Diffstat (limited to 'java.html.markdown')
-rw-r--r--java.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/java.html.markdown b/java.html.markdown
index e0ef49c3..587e793e 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -121,8 +121,8 @@ int i1 = 1, i2 = 2; // Shorthand for multiple declarations
// Arithmetic is straightforward
System.out.println("1+2 = "+(i1 + i2)); // => 3
-System.out.println("1-2 = "+(i2 - i1)); // => 1
-System.out.println("1*2 = "+(i2 * i1)); // => 2
+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)
// Modulo