2019.12.13 reference data types

 The first, Java provides us with a good class, such as the Scanner class, Random, etc., these existing class contains a lot of methods and properties available for us to use.

 Second, we have created their own class, as defined by the standard class can contain multiple methods and properties in the class, for us to use.

 

Create a java file with the same name as the class

{public class name of the class

    Attribute Name Data Type 1;

    Attribute Name Data Type 2;

    …

}

 

 

Guess you like

Origin www.cnblogs.com/l1314/p/12033453.html