Yes, you can, although you will have to use the scala syntax:
:: ~ » scala
Welcome to Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_25).
Type in expressions to have them evaluated.
Type :help for more information.
scala> val x = new java.io.File("/tmp/foo")
x: java.io.File = /tmp/foo
scala> x.length
res0: Long = 24777
scala REPL, scala, sbt (scala analog to maven), :
sbt
console
....
vanila REPL , :
scala -classpath ...
, @Boris , IDE ( Eclipse, IDEA ) - ( ):
