Skip to content · ⁨Lompat ke konten⁩

Print a word · ⁨Cetak satu perkataan⁩

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.

Bahasa Indonesia

Cetak sebuah kata

Selamat datang di jalur Java! Java selalu memiliki beberapa baris setup di sekitar kode Anda. Untuk saat ini, hanya ubah kata-kata di dalam tanda kutip — biarkan sisanya.

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

Baris-baris di sekitar kode Anda — public class Main dan public static void main — harus tetap persis seperti itu. Jika kutipan " atau ; hilang, Java tidak menjalankan program. Ini menampilkan error seperti ';' expected dengan nomor baris, dan kartu di bawahnya menjelaskan apa yang harus diperbaiki. Run pertama bisa memakan waktu beberapa detik.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP