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

Reading List Snapshot

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a helper class that stores three titles in an ArrayList and prints a small reading-list report.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. first title
  2. second title
  3. third title

Output Format

Print the exact report in this order:

  1. Count
  2. Last
  3. Joined

Sample Testcases

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

Sample #1
Public sample
OOP
Math
AI
Count: 3
Last: AI
Joined: OOP-Math-AI
Input: first title = "OOP", second title = "Math", third title = "AI".
Key calculation(s): titles = new ArrayList<>() | titles.add("OOP") | "Count: " + titles.size() = "Count: 3".
Output:
Count: 3
Last: AI
Joined: OOP-Math-AI
Sample #2
Public sample
Java
DB
Cloud
Count: 3
Last: Cloud
Joined: Java-DB-Cloud
Input: first title = "Java", second title = "DB", third title = "Cloud".
Key calculation(s): titles = new ArrayList<>() | titles.add("Java") | "Count: " + titles.size() = "Count: 3".
Output:
Count: 3
Last: Cloud
Joined: Java-DB-Cloud

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