Next
0 / 10
Module DEMO-33-64DEMO-OOP-33

Project Greeting Helper

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a small Java project with two files: Main.java and GreetingHelper.java.

Main must read one single-word name and ask GreetingHelper to build the message.

Print exactly: Welcome, NAME!

Sample Testcases

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

Sample #1
Public sample
Lina
Welcome, Lina!
Input: name = "Lina".
Key construction: greeting = "Welcome, " + "Lina" + "!".
Output:
Welcome, Lina!
Sample #2
Public sample
Omar
Welcome, Omar!
Input: name = "Omar".
Key construction: greeting = "Welcome, " + "Omar" + "!".
Output:
Welcome, 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