We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf65d2 commit 8a9f436Copy full SHA for 8a9f436
README.adoc
@@ -50,20 +50,24 @@ var b = 4;
50
System.out.println("${a} + ${b} = ${a+b}");
51
----
52
53
+prints: `3 + 4 = 7`
54
+
55
### Using expressions:
56
57
[source, java]
58
59
var a = 3;
60
var b = 4;
-System.out.println("flag = ${a > 5 ? true : false}");
61
+System.out.println("flag = ${a > b ? true : false}");
62
63
+prints: `flag = false`
64
65
66
67
-System.out.println("pow2 = ${a * a}");
68
+System.out.println("pow = ${a * a}");
69
70
+prints: `pow = 9`
71
72
### Using functions:
73
@@ -82,6 +86,7 @@ long factorial(int n) {
82
86
return fact;
83
87
}
84
88
89
+prints: `fact(5) = 120`
85
90
91
92
## Getting started
0 commit comments