java写的输入就越界不知道为啥
public static void main(String[] args){
    Scanner sc = new Scanner(System.in);  String s = sc.nextLine();  while (s!=null||!s.isEmpty()) {
        s = sc.nextLine();  }
}
提交个这就数组越界了...