Scala REPL: error: ';' expected but string literal found -
Scala REPL: error: ';' expected but string literal found -
what wrong simple text book repl?
c:\users\abc>scala welcome scala version 2.11.1 (java hotspot(tm) 64-bit server vm, java 1.6.0_45). type in expressions have them evaluated. type :help more information. scala> print "hello" <console>:1: error: ';' expected string literal found. print "hello" ^ scala> this supposed print "hello"
use right syntax:
scala> print("hello") hello scala
Comments
Post a Comment