Next
0 / 15
Module DEMO-33-70DEMO-OOP-33

Secure Student Record

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create Main.java and StudentRecord.java.

Implement the class using private fields plus getters and setters.

Use the object to print the required report exactly as described.

Input Format

Input is given as whitespace-separated tokens in the order stated in the question.

Output Format

Print the exact multiline report required by the question.

Sample Testcases

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

Sample #1
Public sample
S10
Lina
ID: S10
Nickname: Lina
Input: student id = "S10", nickname = "Lina".
Key calculation(s): "ID: " + getStudentId() = "ID: S10" | "Nickname: " + "Lina" = "Nickname: Lina".
Output:
ID: S10
Nickname: Lina
Sample #2
Public sample
S20
Omar
ID: S20
Nickname: Omar
Input: student id = "S20", nickname = "Omar".
Key calculation(s): "ID: " + getStudentId() = "ID: S20" | "Nickname: " + "Omar" = "Nickname: Omar".
Output:
ID: S20
Nickname: Omar

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