Skip to content

Commit 8a9f436

Browse files
committed
polishing
1 parent ddf65d2 commit 8a9f436

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,24 @@ var b = 4;
5050
System.out.println("${a} + ${b} = ${a+b}");
5151
----
5252

53+
prints: `3 + 4 = 7`
54+
5355
### Using expressions:
5456

5557
[source, java]
5658
----
5759
var a = 3;
5860
var b = 4;
59-
System.out.println("flag = ${a > 5 ? true : false}");
61+
System.out.println("flag = ${a > b ? true : false}");
6062
----
63+
prints: `flag = false`
6164

6265
[source, java]
6366
----
6467
var a = 3;
65-
System.out.println("pow2 = ${a * a}");
68+
System.out.println("pow = ${a * a}");
6669
----
70+
prints: `pow = 9`
6771

6872
### Using functions:
6973

@@ -82,6 +86,7 @@ long factorial(int n) {
8286
return fact;
8387
}
8488
----
89+
prints: `fact(5) = 120`
8590

8691

8792
## Getting started

0 commit comments

Comments
 (0)