/java-import-class

Challenge of JavaIsland: Java Basic Structure

Primary LanguageJavaGNU Affero General Public License v3.0AGPL-3.0

简体中文

Java程序的基本结构练习:导入其他类

我们的Home类引用了Cat类和Dog类,但是缺少了import语句导致编译无法通过。请修复之。

挑战

  • 请为Home类补全import语句,使之能够通过编译。
  • 创建一个pull request。
  • 机器人将会检查你的PR,告诉你你是否通过了挑战。
  • 回到字节传说,然后继续你的英雄旅程。

注意:我们只允许您修改以下文件,任何对其他文件的修改都会被拒绝:

  • src/main/java/com/bytelegend/Home.java

Basic Structure of Java Program: Import Other Classes

Our Home class references Cat class and Dog class, but lacks imports. The code can't compile now, please fix it.

Challenge

  • Complete imports in Home class so that the code can compile.
  • Create a pull request.
  • The bot will check your PR and tell you if you accomplish the challenge.
  • Go back to ByteLegend and continue your hero journey.

Note: we only allow you to modify the following files. Any changes to files other than the following files will be rejected:

  • src/main/java/com/bytelegend/Home.java