![](https://img-blog.csdnimg.cn/img_convert/f857bb375f74b70605d0016c2cc9ab56.png)
Today's knowledge is quite similar with c/c++,so I can absorb and master easily.
1.
Like c,the form is --- datatype name value;
2.
Debug is also called as breakpoint debug,we can set one line or more as breakpoint and go through the code step by step.(totally the same as c)
3.
Its form is as below
import java.util.Scanner;(this is at the very top of our code,upper than the definition of class)
and
Scanner sc = new Scanner(System.in);(this is in the main method and before using it)
After the two steps,u can use it as a flexible tool to get information from our keyboard.
If we want to scan an int-type data,we can do like below
int t = sc.nextInt();
Other types like double,char,boolean also obey the rule.(Attention the first latter is upper)
4.
Totally same as c,so I don't go into details.
5.
This is definitely an important point.
When it doesn't come up with a String-type data,the datas would make the calculations,(when coming with char-type,the char will be converted into a int and do the calculation.Remember,these only happen when no String-type occur before),when it comes with a String,the calculations did before won't be impacted,but later any other items would directly linked to the end of the String.
6.
Totally same as c,so I don't go into details.
7.
First,when a data with smaller value-range can be directly passed to a data with larger value-range.
Second,the value-range order is as below
byte -> short -> int -> long -> float -> double(up-going order)
Notice,though long is 8-byte and float is 4-byte,the value-range of long is smaller than float.
Third,when calculating with byte,short or char,they will be converted into int first,and then do the calculation.So codes in the pic make no sense.
![](https://img-blog.csdnimg.cn/img_convert/db304aa7730103b4d6d0ac6f99a3cf84.png)
8.
Sorry,tonight I paid much time in CS:GO(this game contains a lot of fun when playing with friends,every moment we move as a team and make decision one and another),so this part I didn't finish,tomorrow I will complete this part.
GOOD NIGHT~