There are chances that some typing (in Ubuntu terminal - scala -version Scala code runner version 2.9.1) errors occur, example shown below where instead of (l: Int) (l: int) has been typed in parameters.
scala> class Rectangle (l:int, w: Int){
| val length = l
| val length = w
.
.
.
few more lines but still ... module Rectangle is not defined. Or sometimes enter command given and error shows up.
Is there anyway where directly that typing error can be edited / modified and rerun the code? It will save great deal of time otherwise I am entering line by line using up/down arrow.
Please guide.
Right now, you can't. There are Scala GUI REPL's (see them here, plus kojo and the big IDEs), though, which allow this kind of thing. Pick one of them.