object Main extends App { val x = List() val y = x.headOption.getOrElse("") println(y)}
Standard input is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!