Skip to content

Commit 386e1da

Browse files
committed
Update variables.md
1 parent 1c467c1 commit 386e1da

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/variables.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ String boss = "Jaqueline";
3232
IO.println(boss);
3333
~}
3434
```
35+
36+
You may even use that name to give an initial value to another variable.
37+
38+
```java
39+
~void main() {
40+
// Does the same thing as IO.println("Jaqueline");
41+
String boss = "Jaqueline";
42+
// You can use variables on the right of the = too.
43+
String person = boss;
44+
IO.println(person);
45+
~}
46+
```

0 commit comments

Comments
 (0)