import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.stream.Collectors;
class Student{
public String name;
public String id;
public double score;
public int num=0;
num=scanner.nextInt();
public String getName(){
return name;
}
public void setName(String name){
this.name=name;
}
public Stirng getId(){
return id;
}
public void setId(String id){
this.id=id;
}
public double getScore(){
return score;
}
public void setScore(double score){
this.score=score;
}
public static List<Student>students(){
List<Student>students=new ArrayList<>();
Student students=new Student();
for(i=0;i<=num;i++){
students.setName=scanner.next();
students.setId=scanner.next();
students.setScore=scanner.nextDouble();
}
}
public static List<Student> filter(List<Student> students){
for(i=0;i<=num;i++){
if((score>=90)&&(score<=100)){
System.out.println(List<Student>students)
}
}
}
}
public class Main{
public static void mian(String[] args){
Student stu=new Student();
List list=new ArryList();
students.List<Student> filter(List<Student> students)();
}
}
涉及到的知识点我还没学到 我只能临时补看视频 但报错仍然非常多 请问大家我该怎么修改呢