送分题第二题,一起呵成写好的,但哪里错了呢

import java.util.Scanner;
import java.io.PrintStream;

public class mas {
    public static void main(String[] args) throws java.io.UnsupportedEncodingException {
        PrintStream ps = new PrintStream(System.out, true, "UTF-8");
        Scanner in = new Scanner(System.in, "UTF-8");
      
        int[]shu=new int[10];
        for(int i=0;i<10;i++) {
            int  a=in.nextInt();
            shu[i]=a;
        }
        int m=in.nextInt();
        ps.print(shu[m+1]);
    }
}

2 条评论

  • 1