Java (25-40) [entry data type conversion, operators, methods]

1.ASCII coding table

0--48

A--65

a--97

2.

Unicode Unicode

Character 'in' to 20013

3. arithmetic operators

 

type double plus an int result is the double

byte short char int type will be changed and then computes

4. The addition of a variety of uses

Is the string String. String representing the operation to connect

When any character string data type string for connection will become

The arithmetic operators increment and decrement

++ and -

++ ++ front and rear are different

6. Assignment Operators

7. Comparison Operators

8.

8. The ternary operator

9. The method of entry

Outside the main method defined inside the class

Method defines the order does not matter, but it can not be nested

Call other methods in which the main method, and then to grasp the overall grasp of the local

10.Jshell script

According to the script as script say to do

Precautions 11. Compiler

12.

The code error, because there are variables

13. Process and sequential structure

14. Analyzing called judgment statement Statement

15. if else statements

 

 

 

 

 

 

 

Published 24 original articles · won praise 6 · views 454

Guess you like

Origin blog.csdn.net/qq_39965800/article/details/103688724