Practice
└─src
├─main
│ └─java
│ ├─GridPrac.java
│ └─MyFrame.java
└─test
└─java
└─Test.java
This is my Java project structure. (Sorry, I do not have enough reputation to upload image. :D)
I want to import class from MyFrame.java to Test.java.
When MyFrame class under MyFame.java is public:
public class MyFrame{...}
Eclipse does not generate an error notification.
However, when the MyFrame class under MyFame.java is not public,
class MyFrame{...}
Eclipse generates an error notification.
Can I import public classes from different custom packages under the same Project source folder?
Or, how can I import non-public classes from different folder in the same Project?
Thank you in advance!
:D