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. · לחץ על הרץ כדי לראות את התוצא כאן.