Difference between revisions of "Hello World"
From mi-linux
Jump to navigationJump to searchm |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ...Back to [[5CS004]] | ||
+ | |||
== Scala == | == Scala == | ||
− | + | <nowiki> | |
− | + | object HelloWorld { | |
− | + | def main(args: Array[String]): Unit = { | |
− | + | println("Hello world!") | |
− | + | } | |
+ | } | ||
+ | </nowiki> | ||
== Java == | == Java == | ||
Line 51: | Line 55: | ||
print("Hello World!") | print("Hello World!") | ||
</nowiki> | </nowiki> | ||
+ | |||
+ | |||
+ | ...Back to [[5CS004]] |
Latest revision as of 15:04, 7 March 2011
...Back to 5CS004
Scala
object HelloWorld { def main(args: Array[String]): Unit = { println("Hello world!") } }
Java
public class Hello { public static void main(String[] args) { System.out.println("Hello World!"); } }
c#
using System; class ExampleClass { static void Main() { Console.WriteLine("Hello, world!"); } }
PHP
<?php echo("Hello World!"); ?>
Python (versions 1 and 2)
print "Hello World!"
Python3
print("Hello World!")
...Back to 5CS004