Print a word · Cetak satu perkataan
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.
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.
Change the text so it prints hello. · Tukar teks supaya ia mencetak hello.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.