MyPackageClass.java

package mypack;
 
class MyPackageClass {
  public static void main(String[] args) {
    System.out.println("This is my package!");
  }
}

Definition and Usage

The package keyword creates a package.


Related Pages

Read more about packages in our Java Packages Tutorial.

 


Login
ADS CODE