Java Learning (1)-Hello World

First of all, actually move

Since the environment construction is on various sites, I will omit it (sorry lol). The following is the source code.

Main.java


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

(Oh, the source code could be displayed on Qiita lol)

By executing this, the result will be output as "Hello World !!". Basically, programming starts with Hello World first (why?)

For the time being, you can see that you can print a string with System.out.println ("string"). There may be various display methods, but they will be done one by one.

Java source file name

How to name the source file. The first line of code says "public class Main", but use this Main part (called the class name) to name it "Main.java". The Main part can be changed to various things.

Recommended Posts

Java Learning (1)-Hello World
Java, Hello, world!
Java Hello World
"Hello World" in Java
Hello World in Java
Java learning (0)
java hello world, compile, run
Java beginners read Hello World
Hello World for ImageJ Java Plugin
Hello World on AWS Lambda + Java
Hello World in java in eclipse now
Hello world in Java and Gradle
Java learning day 5
Read "Hello world"
Hello Java Lambda
java learning day 2
java learning day 1
Hello world with Java template engine Thymeleaf
Java development with Codenvy: Hello World! Run
Hello World on Mac VS Code Java
Minimal Java environment construction and Hello World
java learning (conditional expression)
Java learning memo (method)
Build Java environment and output hello world [Beginner]
Read System.out.println ("hello, world")
Let's write Hello World
Hello world in node.js
JAVA learning history interface
Java learning memo (basic)
Studying Java-Part 1-Hello World
[Java] Hello World with Java 14 x Spring Boot 2.3 x JUnit 5 ~
Display "Hello World" in the browser using Java
Display "Hello World" in the browser using Java
Java learning memo (interface)
Hello World on WebAssembly
Java learning memo (inheritance)
Wastefully creative "Hello World" output method list (Java)
Hello World with Micronaut
Learning Java framework # 1 (Mac version)
Java basic learning content 7 (exception)
Hello World with Spring Boot
JAVA learning history interface inheritance
Java basic learning content 5 (modifier)
Books used for learning Java
4th day of java learning
Hello World with Spring Boot!
Hello World with VS Code!
Java learning memo (logical operator)
Java learning memo (abstract class)
Hello World with Spring Boot
Hello World with SpringBoot / Gradle
Java Basic Learning Content 8 (Java API)
Java Learning 1 (learning various data types)
Java basic learning content 4 (repetition)
Hello, World! With Asakusa Framework!
[Java] One type of alphabet prohibited With binding Hello, world! [Binding]
Try Hello World using plain Java on a Docker container
Spring Boot Hello World in Eclipse
Java learning memo (creating an array)
Deep Learning Java from scratch 6.4 Regularization
Until "Hello World" with Spring Boot