Semicolons are optional in Scala.
scala> {
| println("Hello World")
| println("How are you")
| }
Hello World
How are you
If you want to keep semicolon, you can do so.
scala> {
| println("Hello World");
| println("How are you");
| }
Hello World
How are you
No comments:
Post a Comment