Use Android studio to learn java language

1. Create a Java package, File ---> New ---> New Model...

2. Configuration package

 

3. After the Java program package is created, as shown in the figure below, enter the sample program in the MyClass file

4. Compile the Java package

5. Compilation results

Guess you like

Origin blog.csdn.net/m0_60030015/article/details/128530902