How to put a folder inside my package layout?

I want to do this:

/Services/
/Services/User/
/Services/User/UserService.java
/Services/User/UserServiceImpl.java


But in IDEA, when I created the class, it organizes things in as a package and doesn't have folders.

com.example.core.services
come.example.core.services.UserServiceImpl.java


What am I doing wrong?

1 comment
Comment actions Permalink

Am I right understanding that you want UserService and UserServiceImpl classes to belong to unnamed package and be located under Services/User filesystem path?

I'm afraid the question is unclear because java packages are matched to file system directories, i.e. every time you create new package via IDEA, corresponding directory is automatically created for you.

0

Please sign in to leave a comment.