[JAVA] Hello World! Output list by various languages (scheduled to be updated in a timely manner)

python3.For x series:

print("Hello World!")
_____________________
python2.For x series:

print "Hello World!"
_____________________
For java:

import java.util.*;

public class Main{
    public static void main(String[] args) throws Exception {
        System.out.println("Hello World!");
    }
}
_____________________
For PHP:

<?php
echo "Hello World!";

?>
_____________________
For Ruby:

puts "Hello World!";

Or

print "Hello World!";

_____________________
For Go:

package main
import "fmt"
func main(){

    fmt.Println("Hello World!")
}

_____________________
For javascript:

process.stdin.resume();
process.stdin.setEncoding('utf8');

var hello = "Hello World!";
console.log(hello);

Or
console.log("Hello World!");
_____________________
C#in the case of:

public class Hello{
    public static void Main(){
        
        System.Console.WriteLine("Hello World!");
    }
}

_____________________
For Swift:

print("Hello World!")

_____________________
For R:

cat("Hello World!")

_____________________
For C:

#include <stdio.h>
int main(void){

        printf("Hello World!");
}
_____________________
C#in the case of:

public class Hello{
    public static void Main(){
        
        System.Console.WriteLine("Hello World!");
    }
}
_____________________
C++in the case of:

#include <iostream>
using namespace std;
int main(void){

    printf("Hello World!");
    
    return 0;
}
_____________________
For lua:

print("Hello World!")
_____________________
For Cobol:

IDENTIFICATION DIVISION.
program-id. Hello.
procedure division.

display "Hello World!".
_____________________
For Elixir:

IO.puts "Hello World!"

_____________________
For Haskell:

main = putStrLn "Hello World!"

_____________________




Recommended Posts

Hello World! Output list by various languages (scheduled to be updated in a timely manner)
Hello World in various languages [Python / PHP / Java / Perl / Ruby]
Hit the echo command in the Mac terminal to output Hello World
I made a prime number table output program in various languages
Let's do "Hello World" in 40 languages! !!
How to display Hello world in python
I want to create a priority queue that can be updated in Python (2.7)
[Python] List Comprehension Various ways to create a list
How to clear tuples in a list (Python)
To myself as a Django beginner (3)-Hello world! ---
Run the output code with tkinter, saying "A, pretending to be B" in python