Difference between revisions of "User:ChampionAsh5357/Test"

From Forge Community Wiki
m (Update test workspace)
m (Final cleanup)
Line 1: Line 1:
 
{{User:ChampionAsh5357/Snippets|
 
{{User:ChampionAsh5357/Snippets|
 
|title=Test
 
|title=Test
|java=public static void main(String args[]) {
+
|java=public static void main(String[] args) {
 
     System.out.println("Hello World");
 
     System.out.println("Hello World");
 
}
 
}
|kotlin=fun main() {
+
|kotlin=fun main(args : Array<String>) {
 
     println("Hello world!")
 
     println("Hello world!")
 
}
 
}

Revision as of 19:49, 7 April 2021

Test.java
public static void main(String[] args) {
    System.out.println("Hello World");
}
Test.kt
fun main(args : Array<String>) {
    println("Hello world!")
}
Test.scala
def main(args: Array[String]): Unit = {
    println("Hello, world!")
}