Previous Next
0 / 15
Module DEMO-33-73DEMO-OOP-33

Nullable Greeting Handler

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

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

Input Format

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

Output Format

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

Sample Testcases

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

Sample #1
Public sample
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
Sample #2
Public sample
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
Editor settings