Ikbhal
Showing posts with label
scala
.
Show all posts
Showing posts with label
scala
.
Show all posts
What is scala twirl
Twirl is play framework scala based template engine.
https://github.com/spray/twirl
How to write class in Scala
class Point(xc:Int, yc:Int){
var x: Int = xc
var y: Int = yc
def move(dx:Int, dy:Int){
x = x+ dx
y = y+dy
}
override def toString():String = "(" + x + "," + y + ")";
}
Older Posts
Home
Subscribe to:
Posts (Atom)