Issue
I am very new to java and when I create a project, it makes the src and the JRE System Library. What it doesn't create is a default package. When i make a class in the src it names it after the project. it requires me to put package (name of project). I don't want to. How do i make the default package.
Solution
New -> class
Delete the package field and name the class whatever you want. Make sure it's in the right project.
If you have a class that is already in the wrong package, simply delete the package name from the top of the file and drag the file in the file viewer to the src folder itself.
Answered By - Strikeskids
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.