Print a word · 単語を表示する
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 というエラーメッセージと行番号が表示され、その下のカードに修正方法を説明しています。最初の実行には数秒かかることがあります。
Change the text so it prints hello. · テキストを変更して hello と表示されるようにします。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。