Samples of Scala and Java code where Scala code looks simpler/has fewer lines?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-06-01T19:37:15Z Indexed on 2010/06/02 3:23 UTC
Read the original article Hit count: 260

Filed under:
|
|
|
|

I need some code samples (and I also really curious about them) of Scala and Java code which show that Scala code is more simple and concise then code written in Java (of course both samples should solve the same problem).

If there is only Scala sample with comment like "this is abstract factory in Scala, in Java it will look much more cumbersome" then this is also acceptable.

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about scala