./Main.java:25: error: class, interface, enum, or record expected
public static void main(String[] args) {
^
./Main.java:27: error: class, interface, enum, or record expected
String nStr = input.nextLine();
^
./Main.java:28: error: class, interface, enum, or record expected
String listStr = input.nextLine();
^
./Main.java:29: error: class, interface, enum, or record expected
int n = Integer.parseInt(nStr);
^
./Main.java:30: error: class, interface, enum, or record expected
List<Integer> integerList = Arrays.stream(listStr.split(" "))
^
./Main.java:33: error: class, interface, enum, or record expected
integerList.stream().skip(0).forEach(System.out::println);
^
./Main.java:34: error: class, interface, enum, or record expected
System.out.println(integerList.get(0));
^
./Main.java:35: error: class, interface, enum, or record expected
}
^
8 errors
[Hydro](https://hydro.ac)提供评测服务