Issue
I am using git with fellow student, now I've noticed that if I load a branch of another student it imports the src folder weirdly.
src="https://i.stack.imgur.com/kbU0t.png" alt="enter image description here" />
what could be the problem?
Solution
Eclipse is not recognizing your src directory as a source folder, and therefore not displaying the underlying directories as packages.
You need to define the source folders in your project, typically src/main/java
and src/test/java
(Maven convention).
If someone else's branch uses different source folders than you, then you get this problem when you switch. It might be useful to either follow the same project structure if you work together, or use separate Eclipse projects.
Answered By - Adriaan Koster
Answer Checked By - Willingham (JavaFixing Volunteer)