Skip to content

Print a word · ⁨打印一个单词⁩

English

Print a word

Welcome to the Java track! Java always has some setup lines around your code. For now, only change the words inside the quotes — leave the rest.

System.out.println("cat") shows cat.

The lines around your code — public class Main and public static void main — must stay exactly as they are. If a quote " or the ; goes missing, Java does not run the program. It shows an error such as ';' expected with a line number, and the card under it explains what to fix. The first Run can take a few seconds.

中文

打印一个单词

欢迎来到 Java 练习!Java 的代码外面总有一些固定的结构。现在,只改引号里的文字,其他不要动。

System.out.println("cat") 会显示 cat。

你代码外面的几行 —— public class Main 和 public static void main —— 必须保持原样。如果少了一个引号 " 或者分号 ;,Java 就不会运行程序,而是显示像 ';' expected 这样的错误和行号,下面的卡片会告诉你要改什么。第一次运行可能要等几秒钟。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩