Hello I am very new to Java, and am trying to figure out how to structure my packages. I am a C# developer, so I am used to namespaces.
Every time I try to nest a package it just goes into the src/ directory and doesn't nest at all 🤔
(I'm using Java 19 SDK with Eclipse IDE)
My hierarchy looks like this:
src/
languages
Main.java
And I want it to look something like this:
src/
languages
Main.java
languages.models
Language.java
Right clicking the languages package to create it did not work, nor did it work when I did a "Go Into" then created the new package.
Thanks in advance!
, so we recommend you using IntellijIDEA
instead of Eclipse