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

Word Case Report

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create two Java files and print the uppercase form, lowercase form, and length of the input word.

Input Format

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

  1. input word

Output Format

Print the exact report in this order:

  1. Upper
  2. Lower
  3. Length

Sample Testcases

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

Sample #1
Public sample
Java
Upper: JAVA
Lower: java
Length: 4
Input: input word = "Java".
Key calculation(s): upper = "Java".toUpperCase() | lower = "Java".toLowerCase() | "Upper: " + upper = "Upper: JAVA".
Output:
Upper: JAVA
Lower: java
Length: 4
Sample #2
Public sample
Library
Upper: LIBRARY
Lower: library
Length: 7
Input: input word = "Library".
Key calculation(s): upper = "Library".toUpperCase() | lower = "Library".toLowerCase() | "Upper: " + upper = "Upper: LIBRARY".
Output:
Upper: LIBRARY
Lower: library
Length: 7

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