Difference between revisions of "User:ChampionAsh5357/Test"

From Forge Community Wiki
m
m (Update test workspace)
Line 11: Line 11:
 
}
 
}
 
|}}
 
|}}
<tabs>
 
<tab name="Java">
 
<syntaxhighlight lang="java">
 
public static void main(String args[]) {
 
    System.out.println("Hello World");
 
}
 
</syntaxhighlight>
 
</tab>
 
<tab name="Kotlin">
 
<syntaxhighlight lang="kotlin">
 
fun main() {
 
    println("Hello world!")
 
}
 
</syntaxhighlight>
 
</tab>
 
</tabs>
 
 
<tabs>
 
{{User:ChampionAsh5357/Tab/Snippet/Java
 
|public static void main(String args[]) {
 
    System.out.println("Hello World");
 
}
 
|title=Test
 
}}
 
{{User:ChampionAsh5357/Tab/Snippet/Kotlin
 
|fun main() {
 
    println("Hello world!")
 
}
 
|title=Test
 
}}
 
{{User:ChampionAsh5357/Tab/Snippet/Scala
 
|def main(args: Array[String]): Unit = {
 
    println("Hello, world!")
 
}
 
|title=Test
 
}}
 
</tabs>
 

Revision as of 19:47, 7 April 2021

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