السابق التالي
0 / 15
الوحدة النمطية DEMO-33-73DEMO-OOP-33

Nullable Greeting Handler

DEMO-OOP-33 • Object Oriented Programming

Browser-only practice

بيان المشكلة

Read one raw token. Treat NULL as a missing name and handle the null case using exception handling.

تنسيق الإدخال

Input is given as whitespace-separated raw tokens exactly in the order described by the problem statement.

تنسيق الإخراج

Print the exact success report or exact error message required by the problem.

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
Lina
Greeting: Hello LINA
Input: raw name token = "Lina".
Derivation: name = "Lina" and name.toUpperCase() = "LINA" | "Greeting: Hello " + "LINA" = "Greeting: Hello LINA".
Output:
Greeting: Hello LINA
العينة رقم 2
عينة ظاهرة
omar
Greeting: Hello OMAR
Input: raw name token = "omar".
Derivation: name = "omar" and name.toUpperCase() = "OMAR" | "Greeting: Hello " + "OMAR" = "Greeting: Hello OMAR".
Output:
Greeting: Hello OMAR

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر