Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有文件/project/src/config/configInterface.java。
/project/src/config/configInterface.java
在相邻目录(/project/src/anotherfolder/hereItryToUse.java)我不能使用configInterface类,因为我不知道如何导入这个包。
/project/src/anotherfolder/hereItryToUse.java
configInterface
我该怎么做?
你用什么IDE?
ctrl(cmd)+shift+o 是Eclipse中导入包的快捷方式(别人不知道),但是你绝对可以使用包