Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialpriyanka shukla
3,051 PointsDo we need to import class if they do exist in same directory
i am asking it because currently i a learning datastructures and i am confused whether i should use import package for the files which are in same directory
1 Answer
priyanka shukla
3,051 Pointsthnks saad
Saad El Ashmawi
4,847 PointsSaad El Ashmawi
4,847 Pointsif they are in the same directory then they are in the same package and no need to import, you can delete your import and check that you can access the public methods from other classes in the same package.