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.
假设你在 abc 中定义了一个类,并且你想在 ab 中引用一个类,是否有这样的快捷方式,比如“..”?
不。
尽管 Java 包命名的最佳实践通常涉及分层命名,但实际定义的包不是分层的,并且彼此之间没有任何关系。