java basic knowledge memo

It is a compilation based on personal experience at the development site, so please read it for reference only.

What is java

If you search for "what is java" on google etc., you will find a lot of explanations. In short, java is one of many "programming languages". In the first place, a programming language is a language that can talk to a computer. Of course, even if I write Japanese, I can't understand it on a computer. You can give commands to your computer and get answers from your computer in words written in a programming language.

** I hope there is a more beautiful picture here. .. .. (★ TODO) **  image.png

What are you good at with java?

Well, there are various things, but the typical one is to create an application for an Android smartphone, Build a website ...   Please search for details: * java good *

Let's get started with java

There are some basic conditions for writing java.

--Internet connection At least when building the first environment, an internet connection is required. Because the installation materials need to be downloaded from the internet

--Java writing flow

  1. Java environment construction ・ Install Jdk ・ IDE installation
  2. Write Java Code
  3. Execute Java Code
Column 1
What is jdk and why do I need to install jdk?
Column 2
What is an IDE and why do I need to install an IDE?

Environment

--jdk installation (★ TODO)

Search: * jdk installation windows * Search: * jdk installation mac *

Column 3
About jdk type and sorting method

--Install sts (eclipse) (★ TODO)

Column 4
About the main IDE types

Let's write Java Code!

Below is an image of writing java code in Spring Tool Suite (STS for short).

-** Start STEP1 STS **

Double-click the "STS-Shortcut" icon on your computer to start STS. image.png

STS is running ... image.png

Specify the directory where you want to save the files you are working on. You can specify any place you like. If you're not particular about it, leave it alone and click the Launch button. image.png   After a while, you will see a screen like this. This completes STS startup. image.png

-** STEP2 Create java project **

wait a moment. What is a java project? A java project is a collection of several Java programs as a function or application. I can't understand the concept right away, and I can gradually get used to it, so when creating a java code, just remember that you need to create a java project first, instead of writing the java code suddenly. Let's go.

Click the "file" menu on the STS screen image.png

Click "New" in the menu image.png

Click "Java project" in the menu image.png

Enter a name of your choice on the "New Java Project" screen and click "Finish" image.png   You can see the created projet in the upper left of the STS screen. This completes the java project creation. image.png

-** STEP3 Create a file to store java code **

Since java code is written in class units, in technical terms, a java code file is called a class file. What is a class?  ★TODO

package sample;

public class Main {

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

}

Let's execute java code!

Java Code basic configuration

--Package --Class --Method --Variables

It's still on the way. I will edit it again if I have time. : fist:

Basic syntax of java Code

Recommended Posts

java basic knowledge memo
Java basic knowledge 1
Java learning memo (basic)
Basic knowledge
Java memo
[Basic knowledge of Java] Scope of variables
java anything memo
Java knowledge summary
Java Silver memo
java, maven memo
Java basic grammar
Java basic grammar
Java SE 7 memo
[Java] Basic structure
[Java] [Basic] Glossary
java anything memo 2
Java basic grammar
Java basic grammar
Java exercises [Basic]
Java specification memo
Java pattern memo
Basic knowledge of Java development Note writing
[Basic knowledge of Java] About type conversion
Java development environment memo
Java learning memo (method)
Java Kuche Day memo
[Java] Data type ①-Basic type
ruby basic syntax memo
[Java ~ Method ~] Study memo (5)
java se 8 programmer Ⅰ memo
Java paid private memo
Java basic date manipulation
Java basic naming conventions
[Java ~ Array ~] Study memo 4
java lambda expression memo
(Memo) Java for statement
Java lambda expression [memo]
Java learning memo (interface)
[Java] Implicit inheritance memo
Java learning memo (inheritance)
java competitive programming memo
[Java] Basic method notes
[Memo] Java Linked List
Java basic data types
Basic Java OOps concepts
[Beginner] Create a competitive game with basic Java knowledge
Introduction to Java for beginners Basic knowledge of Java language ①
Java basic learning content 7 (exception)
[Java] Variable name naming memo
Java memo (standard class) substring
Basic Authentication with Java 11 HttpClient
Java basic syntax + α trap
Java learning memo (data type)
Basic knowledge of SQL statements
[Java] Basic statement for beginners
Java memo (standard class) length
Java basic learning content 5 (modifier)
Java Silver Study Method Memo
[Java ~ Boolean value ~] Study memo (2)
Create a java method [Memo] [java11]
Java Silver exam preparation memo