Learning for the first time java [Introduction]

I learned java for the first time

HelloWorld character output

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

output

Hello World!

Output by System.out.println Enclose the character string in "" Add; at the end

Method of calculation

public class Main {
	public static void main(String[] args) {
		System.out.println("hello, world!");

		System.out.println("31+Do 31 calculations");

		System.out.println(31+31);
	}
}

output

hello, world!
31+Do 31 calculations
62

Do not enclose in "for formulas"

Variable definition and multiplication

public class Main {
	public static void main(String[] args) {
	    int x;
	    x = 6;
		System.out.println(x * x * 3.14);
	}
}

output

113.04

int is used when defining numbers

Recommended Posts

Learning for the first time java [Introduction]
Introduction to java for the first time # 2
Learning memo when learning Java for the first time (personal learning memo)
Learn for the first time java # 3 expressions and operators
Spring Boot for the first time
Spring AOP for the first time
For JAVA learning (2018-03-16-01)
First steps for deep learning in Java
I tried using Docker for the first time
The story of learning Java in the first programming
Walls hit by Rspec for the first time
I tried touching Docker for the first time
Use Java external library for the time being
Run Dataflow, Java, streaming for the time being
[First Java] Make something that works with Intellij for the time being
[Socket communication (Java)] Impressions of implementing Socket communication in practice for the first time
Programming for the first time in my life Java 1st Hello World
[DL4J] Java deep learning for the first time (handwriting recognition using a fully connected neural network)
Books used for learning Java
Impressions and doubts about using java for the first time in Android Studio
Quick learning Java "Introduction?" Part 2 Let's write the process
Oreore certificate https (2020/12/19) for the first time with nginx
[Deep Learning from scratch] in Java 1. For the time being, differentiation and partial differentiation
How to study kotlin for the first time ~ Part 2 ~
How to study kotlin for the first time ~ Part 1 ~
[Android studio / Java] What you don't understand when you touch it for the first time
[Rails] I tried using the button_to method for the first time
Modeling a Digimon with DDD for the first time Part 1
Think when Rails (turbolinks) doesn't load the page for the first time
Java learning (0)
Java14 came out, so I tried record for the time being
[Java] Introduction
[Introduction] Installation of Docker Desktop for Mac for the first time and setup of virtual environment construction of CentOS
[Introduction] Setting up GridDB Community Edition in the CentOS container of Docker Desktop for the first time
Touching kotlin for the first time-Enum Classes
About the procedure for java to work
[Java] How to set the Date time to 00:00:00
Deep Learning Java from scratch Chapter 1 Introduction
Note: next ・ nextLine (paiza learning Java introduction 9: # 06)
Use the l method for time notation
Java12 came out, so I tried the switch expression for the time being
For the time being, run the war file delivered in Java with Docker
The story of releasing the Android app to the Play Store for the first time.
Creating an app and deploying it for the first time on heroku
The story of intentionally using try catch for the first time in my life
Check the options set for the running Java process
9 strongest sites for learning Java by self study
ChatWork4j for using the ChatWork API in Java
Ruby Learning # 1 Introduction
Quick learning Java "Introduction?" Part 1 Building an environment
Java learning day 5
Feel the passage of time even in Java
[Java] Let's create a mod for Minecraft 1.14.4 [Introduction]
Create your own Android app for Java learning
What is the volatile modifier for Java variables?
[Java] Let's create a mod for Minecraft 1.16.1 [Introduction]
[Java] (for MacOS) How to set the classpath
I want you to use Scala as Better Java for the time being
[Java] Introduction to Java
Install Amazon Corretto (preview) for the time being
The date time of java8 has been updated