summaryrefslogtreecommitdiffhomepage
path: root/java.html.markdown
diff options
context:
space:
mode:
authorChristos Kontas <xakon@yahoo.com>2013-10-08 19:09:12 +0300
committerChristos Kontas <xakon@yahoo.com>2013-10-08 19:09:12 +0300
commit925ded87809a5ae9f40a3c825324cb083eaba81e (patch)
tree77cdc274ef53e89f3630963c5cff1e28d4077ba3 /java.html.markdown
parent80e8200b55ae3d3c7e0dd3b4f363c2358470980b (diff)
[java] Missing semi-colon at code example
Diffstat (limited to 'java.html.markdown')
-rw-r--r--java.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/java.html.markdown b/java.html.markdown
index 0dec51d1..3d0cb1d7 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -250,7 +250,7 @@ public class LearnJava {
// Conditional Shorthand
// You can use the '?' operator for quick assignments or logic forks.
// Reads as "If (statement) is true, use <first value>, otherwise, use <second value>"
- int foo = 5
+ int foo = 5;
String bar = (foo < 10) ? "A" : "B";
System.out.println(bar); // Prints A, because the statement is true