why “while(Scanner.hasNext())” causes OutOfMemoryError in java?

后端 未结 0 509
南笙
南笙 2020-12-29 09:52
import java.util.*;
import java.io.*;
public class Main {
    public static void problem1 () {
        Scanner scanner = new Scanner(System.in);
        while (scann         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题