Skip to content

Instantly share code, notes, and snippets.

View NPantola's full-sized avatar

Nick "Pants" Pantola NPantola

View GitHub Profile
object TestObject extends TestTraitClass {
val immutableVariable: String = "Hello Immutable"
var mutableVariable: String = "Hello Mutable"
def getImmutable(): String = immutableVariable
def getMutable(): String = {
mutableVariable
}
//Java
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello, world!");
}
}
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello, world!");
}
}
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
}
}