Now, we already created a source folder in eclipse. We want to create a package.

This gallery shows the two steps.

For a little explanation look at the following Images + Text (1-2):

  1. Now, create a package. First press the right mouse button and go to “New” and “Package”.

java package


2. Give the source folder a name in our case “P”. And press “finish”.

java package


The next part is to create a class.