Changes
From Forge Community Wiki
653 bytes removed
, 20:57, 7 April 2021
m| Line 1: |
Line 1: |
| − | {{User:ChampionAsh5357/Snippets| | + | {{Template:Tabs/Code_Snippets |
| − | |title=Test | + | |file_name=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!") |
| | } | | } |
| Line 10: |
Line 10: |
| | println("Hello, world!") | | println("Hello, world!") |
| | } | | } |
| − | |}} | + | | |
| − | <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>
| |