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

Schedule Formatter Utility

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a mini project with Main.java and ScheduleFormatter.java.

Read three single-word course names and print them numbered on separate lines.

Use the formatter class to build the final multiline output.

Sample Testcases

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

Sample #1
Public sample
Java Math Physics
1. Java
2. Math
3. Physics
Input: first course = "Java", second course = "Math", third course = "Physics".
Key formatting: line 1 = "1. Java", line 2 = "2. Math", line 3 = "3. Physics".
Output:
1. Java
2. Math
3. Physics
Sample #2
Public sample
OOP DB AI
1. OOP
2. DB
3. AI
Input: first course = "OOP", second course = "DB", third course = "AI".
Key formatting: line 1 = "1. OOP", line 2 = "2. DB", line 3 = "3. AI".
Output:
1. OOP
2. DB
3. AI

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