mpanion {
public static void main(String[] args) {
new Companion().hello(); // [1]
Companion.hallo(); // [2] (static)
Companion$.MODULE$.hello(); // [3] (static)
}
}
Multiline String és Beágyazott XML
val someXMLInAString = """
<sammich>
<bread>wheat</bread>
<meat>salami</meat>
<condiments>
<condiment expired="true">mayo</condiment>
<condiment expired="false">mustard</condiment>
</condiments>
</sammich>
"""
import scala.xml._
val someXML =
<sammich>
<bread>wheat</bread>
<meat>salami</meat>
<condiments>
<condiment expired="true">mayo</condiment>
<condiment expired="false">mustard</condiment>
</condiments>
</sammich>
Információk
http://www.scala-lang.org/
https://www.coursera.org/course/progfun
http://blog.knoldus.com
http://java.dzone.com/taxonomy/term/277/0
http://www.scala-lang.
org/docu/files/ScalaByExample.pdf
http://www.slideshare.net/tpunder/a-briefintro-to-scala
http://cscarioni.blogspot.ie/2013/02/ducktyping-in-scala-kind-of-structural.html
Köszönöm a
figyelmet
Elérhetőség:
janos.haber@finesolution.hu