answersLogoWhite

0

How do you create packag in java?

User Avatar

Anonymous

12y ago
Updated: 9/17/2019

You can easily create Java packages with a few steps.

# Create a set of classes that you want to be in your package.

# Use the package keyword at the top of each of these classes to declare which package they're in. # Organize your source files such that a package name corresponds to a directory name. For instance, the JPanel class has a "package javax.swing;" declaration in the source file, and is located in the javax/swing folder.

User Avatar

Wiki User

15y ago

What else can I help you with?