Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 424 Bytes

tips.md

File metadata and controls

19 lines (12 loc) · 424 Bytes

遇到的一些问题

tip 1

在做1.1.23时,编译会有警告,原因是有些用法已经过时。

int[] whitelist = In.readInts(args[0]);

改成:

int[] whitelist = new In(args[0]).readAllInts();

参考来源:点击链接 但是发现网站上更新了最新的代码,如题如下。

In in = new In(args[0]);
int[] whitelist = in.readAllInts();