From the course: Learning Eclipse

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Java package and class

Java package and class

From the course: Learning Eclipse

Start my 1-month free trial

Java package and class

- [Instructor] We're ready to create a new Java package and class, and just like we did in creating our project, we're going to be using a wizard to create the new Java package. And there are also three ways of doing so, by going to the file, new option, and choosing package. And likewise from the package explorer. New, package, and similarly here. And as you can see there's a recurring theme, and whether we're talking about packages, classes, interfaces, you have those three options. I'll go ahead and select package now, and we're ready to name our package. Now one quick thing I'd like to mention is that if we were creating a subpackage, you'd want to highlight and select the parent package and then start this package wizard. But in this case, this is the main package that we're creating, and let's give it a name of ... Com, dot, my second ... Project ... Dot, model. And we'll double-check, make sure our source folder's as we expect, and it is. If not, we could have gone and clicked…

Contents