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

Key Mirror Panel

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a Swing panel with a text field and a label. Releasing a key must update the label with the uppercase form of the text.

Input Format

Input is given as whitespace-separated values and is used by Main.java to simulate the GUI interaction.

Output Format

Print the final label text returned by the simulation.

Sample Testcases

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

Sample #1
Public sample
java
Mirror: JAVA
Input: typed word = "java".
Derivation: "java".toUpperCase() = "JAVA" | "Mirror: " + "JAVA" = "Mirror: JAVA".
Final label text:
Mirror: JAVA
Sample #2
Public sample
swing
Mirror: SWING
Input: typed word = "swing".
Derivation: "swing".toUpperCase() = "SWING" | "Mirror: " + "SWING" = "Mirror: SWING".
Final label text:
Mirror: SWING

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