Three kinds of calls 1. methods: individual calls, print call, call assignment
The method call is a call alone is not output;
Print method call is to be output
Call assignment is to assign the result to a variable and then output
void is no return value, and therefore can only be assigned a separate call
2. The method of calling graphic
3. Comparative has no parameters and parameters
The method has no return value and return values
No return value is directly output
It returns a value and outputs the result to a variable
5. Exercises
Note Boolean value Boolean
Note 6. The method of
7. The method of overloading
Overload
Multiple methods of the same name but not the same parameter list
Parameter must correspond
Note 8. The method overloading
Look at the name and parameter types
9. The method overloading exercises
10.shift + f6 method all parameters can be controlled
11. The concept of an array
Length of the array can not be changed
The left side of data types: that is stored in an array of data, are all unified in what type
int [] a=new int [100];
12. The concept of static initialization
in[ ] a = new int[ ]{5,15,25};\
String[ ] a = new String{"world","java"};