How Java uses the Help document API
1: Open the Help document
2: Click Show, find index, see Input box
3: Know who you're looking for? Take scanner example
4: Enter scanner in the input box and return
5: Look at the bag
The classes under the Java.lang package do not need to be imported, and all others need to be imported.
To import:
Java.util.Scanner
6: Just take a look at the explanation and description of the class, and don't forget to look at the version of the class
7: See Structure of the class
member variable → field summary
Construction method → Construction Method Summary
member Method → Method summary
8: Learning how to construct
A: Create an object with a construction method
B: No constructor method members may be static
9: See Member methods
A: Left
Static: If static, can be called through the class name
Return value type: What is returned, you receive with what.
B: Right
Look at the method name: method names don't write wrong
Parameter list: What you want, what you give, how many people want, you give a few
How Java uses the Help document API