摘要:
目录结构如图所示: 错误的原因是因为代码中没有指定package,加上“package j2se;”后再编译即OK。 报错之前的代码: public class HelloWorld{ public static void main(String[] args){ System.out.print 阅读全文
posted @ 2020-12-17 14:27
胸怀丶若谷
阅读(11028)
评论(0)
推荐(0)
摘要:
module 本模块的名称{ exports 对外暴露的包路径; requires 需要依赖的其他模块名称; } module-info.java不是类,不是接口,是一些模块描述信息。module也不是关键字。 exports 对外暴露的包路径;有些包你想要其他模块访问,有些包你不想要其他模块访问。 阅读全文
posted @ 2020-12-17 13:53
胸怀丶若谷
阅读(4896)
评论(0)
推荐(1)
摘要:
链接推荐: https://how2j.cn/ 阅读全文
posted @ 2020-12-17 09:23
胸怀丶若谷
阅读(1036)
评论(0)
推荐(0)

浙公网安备 33010602011771号