2011. jún. 27.

Hello World Oxygene!

namespace ConsoleApplication1;

uses 
  System.Linq;

type
  ConsoleApp = class
  public
    class method Main;
  end;

class method ConsoleApp.Main;
begin
  Console.WriteLine('Hello World.');
end;
 
end.

Hello World Charm!

ext proc write_string (ref array char);
    module hello_world;
        ent proc start ();
            write_string ("Hello world");
        end_proc;
    end_module;

Hello World Caml!

print_endline "Hello world!";;

Hello World C/AL!

MESSAGE('hello, world');

Hello World Boo!

print "Hello, world!"

Hello World Batch!

@ECHO off
ECHO Hello World!
PAUSE
@ECHO on

Hello World BASIC

PRINT "Hello World"

Hello World Bash!

echo "Hello World!"

2011. jún. 17.

Hello World Ada!

with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
  Put_Line("Hello, world!");
end Hello;

Hello World AMPLE!

/* A simple Hello World Example */
function hello() 
{
  // Single Line output
  $writeln("Hello World !");
}

2011. jún. 16.

Hello World ActionScript 3.0

package com.example
{
    import flash.text.TextField;
    import flash.display.Sprite;
 
    public class Greeter extends Sprite
    {
        public function Greeter()
        {
            var txtHello:TextField = new TextField();
            txtHello.text = "Hello World";
            addChild(txtHello);
        }
    }
}

2011. jún. 15.

Hello World Android!

HelloWorld.java

package com.android.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class HelloWorld extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button button = (Button) findViewById(R.id.Button01);
        button.setOnClickListener(new OnClickListener() {
           @Override
           public void onClick(View v) {
            Toast.makeText(HelloWorld.this, "Hello World", Toast.LENGTH_SHORT).show();
           }
         });       
    }
}


main.xml
<?xml version="1.0" encoding="utf-8"?>
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<button android:text="Click Me"
 android:id="@+id/Button01"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"></Button>
</LinearLayout>

Hello World Pascal!

program HelloWorld;

begin
    writeln('Hello World');
end.

C# Hello World

using System;

public class Hello
{
    public static int Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}

Hello World C++

#include <iostream>

using namespace std;
void main()
{
    cout << "Hello World!" << endl;
}

Hello World C

#include <stdio.h>

int main()
{
       printf("Hello World\n");
       return 0;
}

Hello World Java

class HelloWorld
{
    public static void main(String[] args)
    {
         System.out.println("Hello World!");
    }
}