Java-- method, intellij IDEA some shortcuts

intellij IDEA some shortcuts :

 

 

First, the basic method

 

 Give you an example of two type int numbers together:

 

 

 This example illustrates

 

 

public static void main (String [] args) {} is equivalent to c or c ++ main function, which functions can not be set function, the sum function and multiplication function can only be written on the outside, and this location is not important to the function (and this is c is not the same)

 Second, the method overloading

 

 Example:

Look at the trouble:

 

 simplified:

 

 note:

 

 

 

 

 

About the print function println method overloading in the source code by pressing "ctrl" + "click function" you can find out the source code (applicable to intellij IDEA)

 

Guess you like

Origin www.cnblogs.com/kongbursi-2292702937/p/11587400.html