“Hello, World!” In programming languages.
Welcome to Open Programmer. This is my first blog post, My name is Gabriel and I’m a programmer. In programming we speak other languages, just like “English, Dutch, German or Armenian” but in our world we use “Java, Scala, Php or C#” all those languages are rich and powerful.
Many programmers started there first word with “Hello World!” and I’m one of them, any new language I would like to learn I start with the Hello World! application, this said I thought i wont delete my first word press blog, in fact i would add an “Hello World” application for languages that I know or I worked with in the past.
Java:
1 2 3 4 5 6 7 8 9 |
/** * The HelloWorldApp class implements an application that * simply prints "<span class="crayon-s">Hello, World!</span>" to standard output. */ class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello, World!"); // Display the string. } } |
C#:
1 2 3 4 5 6 7 |
public class Hello1 { public static void Main() { System.Console.WriteLine("Hello, World!"); } } |
Scala:
1 2 3 4 5 |
object HelloWorld { def main(args: Array[String]) { println("Hello, World!") } } |
PHP:
1 |
<?php echo 'Hello, World!'; ?> |
Javascript:
1 |
<script>alert('Hello, World!');</script> |
All coding languages are made to be simple and sexy, but we as human can complicate it or simplify it.