开发者社区 问答 正文

import 语句中的代码import example.*;中的*代表的是什么?

import 语句中的代码import example.;中的代表的是什么?

展开
收起
游客k7rjnht6hbtk6 2021-11-02 21:56:51 490 分享 版权
1 条回答
写回答
取消 提交回答
  • import 语句中的星号(*)只能代表类,不能代表包,表明导入 example 包下的所有类。

    2021-11-02 21:57:10
    赞同 展开评论
问答地址: