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
Normal case
Input:
4 Alice 72 Bob 88 Carol 91 Dave 65
Expected Output:
Alice: 72 points Bob: 88 points Carol: 91 points Dave: 65 points
Normal case
Input:
3 Mike 55 Sara 78 Tom 63
Expected Output:
Mike: 55 points Sara: 78 points Tom: 63 points
Your Solution
Current Mode:● My Code
Student.java🔒
Solution.java🔒
2/6 ファイル96B
⚠️警告
- No main method found
9
1
2
3
4
›
⌄
import java.util.Scanner;
class Student {
}
0 B / 5 MB
You have 10 free executions remaining
