当我尝试获取 Integer 类型的输入时,我只需要做下面的代码。
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
但当涉及到 BigInteger 时,
我不知道该怎么办。我该如何读取用户的 BigInteger 类型输入?
Scanner sc = new Scanner(System.in);
BigInteger bi = sc.nextBigInteger();
参考:扫描仪#nextBigInteger
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)