Skip to content · ⁨الانتقال إلى المحتوى⁩

Print a word · ⁨طباعة كلمة⁩

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.

العربية

اطبع كلمة

أهلاً بك في مسار Java! Java دائماً ما تحتوي على بعض أسطر الإعداد حول الكود الخاص بك. الآن، غيّر فقط الكلمات داخل علامات الاقتباس — اترك الباقي كما هو.

يُظهر System.out.println("cat") cat.

يجب أن تظل الأسطر المحيطة بكودك — public class Main وpublic static void main — كما هي بالضبط. إذا اختفت علامة اقتباس " أو ;، فلن تعمل Java البرنامج. ستظهر رسالة خطأ مثل ';' expected مع رقم سطر، والبطاقة التي تحتها تشرح ما يجب إصلاحه. قد يستغرق التشغيل الأول بضع ثوانٍ.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP