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

Join Names Form

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a Swing form with two text fields, a button, and a label. Clicking the button must print the uppercase full name.

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
Lina
Saleh
Name: LINA SALEH
Input: first name = "Lina", last name = "Saleh".
Derivation: "Lina" + " " + "Saleh" = "Lina Saleh" | "Lina Saleh".toUpperCase() = "LINA SALEH" | "Name: " + "LINA SALEH" = "Name: LINA SALEH".
Final label text:
Name: LINA SALEH
Sample #2
Public sample
Omar
Ali
Name: OMAR ALI
Input: first name = "Omar", last name = "Ali".
Derivation: "Omar" + " " + "Ali" = "Omar Ali" | "Omar Ali".toUpperCase() = "OMAR ALI" | "Name: " + "OMAR ALI" = "Name: OMAR ALI".
Final label text:
Name: OMAR ALI

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