I would like to start studying Java at Progate, which is famous for being different from JavaScript as melon bread and melon, and ham and hamster. Let's go Jaba Jaba: swimmer_tone2 :: swimmer_tone2 :: swimmer_tone2:
System.out.println();
Is like console.log in JS. You can output the result to the console. It's long, it's long. .. I complained that even console.log was long. There are also two "." ...! (Anyway, it's complemented? It's only while I'm doing Progate that I hit it for a long time.)
What's more, println is a shocking fact that ** l is a lowercase "eru" **. : scream: The reading is called print line. ..
The structure of Java is divided into three parts: class part, method part, and processing in the method. It seems that it's still okay, but I'm sure there will be a great hint recovery later. : spy_tone2:
//Variable definition
Data type variable name;
//Assigning a value to a variable
Variable name=value;
//Can be united. It seems to be variable initialization
Data type variable name=value;
Declare the type of data such as int or String in the variable. And it seems that assigning a value at the same time as defining a variable is called "variable initialization".
Variable name you want to update=New value;
Do not type the data when updating. If the data type is attached, it seems that a new variable is defined, Java "I already have a variable with this name. Why do you say that again?": Sob: It seems that you will be in trouble and throw an error, so let's not bother Java.
int X = 2;
X = X+3;
A shape that you often see. The first knowledge that seems to be called self-substitution.
Recommended Posts