007-004-002

Class Aggregation: Student List

Easy

Problem Description

class Aggregation: Student List

In this problem, you will create a program that manages multiple student records using an array of Student class objects and displays each student's name and score in a specified format to standard output.

Learning Objective: Manage multiple objects in array collectively

Create a program managing multiple student information. Store Student class objects in an array and display the information.

Input

Line 1: Student count (integer)
Line 2 onwards: Name and score (string and integer, multiple lines)

Output

[name1]: [score1] points
[name2]: [score2] points
...
```java

## Examples

### Example 1: 2 students
Input:
```java
2
Taro 85
Hanako 90
```java
Output:
```java
Taro: 85 points
Hanako: 90 points
```java

### Example 2: 3 students
Input:
```java
3
A 70
B 80
C 75
```java
Output:
```java
A: 70 points
B: 80 points
C: 75 points
```java

### Example 3: 1 student (boundary)
Input:
```java
1
X 100
```java
Output:
```java
X: 100 points

Test Cases

※ Output examples follow programming industry standards

Input:
2
Taro 85
Hanako 90
Expected Output:
Taro: 85 points
Hanako: 90 points
Input:
3
A 70
B 80
C 75
Expected Output:
A: 70 points
B: 80 points
C: 75 points
Input:
1
X 100
Expected Output:
X: 100 points
Input:
2
Ken 95
Yuki 88
Expected Output:
Ken: 95 points
Yuki: 88 points
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
Student.java🔒
Solution.java🔒
2/6 ファイル96B
⚠️警告
  • No main method found
import java.util.Scanner;

class Student {
}
0 B / 5 MB

You have 9 free executions remaining