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 มักจะมีบรรทัดตั้งค่าบางบรรทัดรอบโค้ดของคุณ ปัจจุบัน เปลี่ยนเฉพาะคำภายในเครื่องหมายอ้อม quotes — ทิ้งส่วนอื่นไว้
System.out.println("cat") แสดง cat
บรรทัดรอบโค้ดของคุณ — public class Main และ public static void main — ต้องคงไว้ตามเดิม หาก quote " หรือ ; หายไป Java จะไม่รันโปรแกรม มันแสดงข้อผิดพลาดเช่น ';' expected พร้อมหมายเลขบรรทัด, และการ์ดด้านล่างอธิบายว่าต้องแก้ไขอะไร การ Run ครั้งแรกอาจใช้เวลาไม่กี่วินาที
Change the text so it prints hello. · แก้ไขข้อความให้มันพิมพ์ hello
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่