I am completely new to Scala. I try to implement the if-expression example on p. 160 from the "Scala Programming" book of Odersky, Spoon, Venners (see here).
var filename = "default.txt"
if(args.isEmpty)
filename = args(0)
Why is this code not compiled? How can I make it run?
Aucun commentaire:
Enregistrer un commentaire