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 & AP