The second week of learning java (Day 8)

After studying for a week, I didn't know what to say, so I just recorded my studies casually. (Anyway, it’s not a big problem in my own opinion)

From the beginning of the jdk download and installation, the configuration of environment variables, and then the idea download and installation.

Then officially enter java learning, from the first HelloWrold, and then learn the basic data types (integer type byte, short, int, long, floating point float, double, character type char, Boolean type boolean)

Then I learned two types of conversion (automatic conversion, normal conversion) + variable declaration;

Then there are flow control statements (single-branch if, double-branch if-else, multi-branch if-else if-else, switch)

Then there is a loop (for loop, while loop, do while loop, the keyword to end the loop continue-skip this loop and start the next loop, break-end the current layer loop, return-end method will also end the loop by the way Lose)

After learning the loop and starting to learn the array, there are more [ ] than when declaring variables,

Probably int[] nums = {12,35,13,1,75}; String[] arr = {"you","good","java"};

The following is the common method of learning string classes startsWith(), contains(), equlas(), length(), split(), subString() and then Integer class, Arrays class

Then learn the method, no return without participation, return without participation, return without participation, return with participation.

Record it casually, clicking in means you wasted a few minutes. Passers-by don't spray, I'm just a novice who just learned java, so be merciful.

Guess you like

Origin blog.csdn.net/yl23921/article/details/126713384