In the meantime, this is how you write a Hello World for Java:
package demo;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
In the meantime, this is how you write a Hello World for Kotlin:
package demo
fun main(args : Array<String>) {
println("Hello, world!")
}
In the meantime, this is how you write a Hello World for Scala:
object HelloWorld extends App {
println("Hello, World!")
}
In the meantime, this is how you write a Hello World for Go:
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
In the meantime, this is how you write a Hello World for Objective-C:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Hello, World!");
[pool drain];
return 0;
}
In the meantime, this is how you write a Hello World for .Net:
public class HelloWorldHandler : HttpMessageHandler {
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) {
return Task.FromResult(new HttpResponseMessage() {
Content = new ByteArrayContent(Encoding.UTF8.GetBytes("Hello World."))
});
}
};
public static void Register(HttpConfiguration config) {
var emptyDictionary = new HttpRouteValueDictionary();
config.Routes.MapHttpRoute("index", "", emptyDictionary, emptyDictionary, new HelloWorldHandler());
}
In the meantime, this is how you write a Hello World for MATLAB:
classdef hello
methods
function greet(this)
disp('Hello, World')
end
end
end
In the meantime, this is how you write a Hello World for Assembly:
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
ret
message:
db 'Hello, World', 10, 0
In the meantime, this is how you write a Hello World for Bash:
#!/bin/bash
STR="Hello World!"
echo $STR
In the meantime, this is how you write a Hello World for Delphi:
procedure TForm1.ShowAMessage;
begin
ShowMessage('Hello World!');
end;
In the meantime, this is how you write a Hello World for EIFFEL:
class
HELLO_WORLD
create
make
feature
make
do
print ("Hello, world!%N")
end
end
In the meantime, this is how you write a Hello World for ERLANG:
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("hello, world\n").
In the meantime, this is how you write a Hello World for HASKELL:
module Main where
main :: IO ()
main = putStrLn "Hello, World!"
In the meantime, this is how you write a Hello World for Rust:
fn main() {
println!("Hello, world!");
}