类 Whitelist
- java.lang.Object
-
- edu.princeton.cs.algs4.Whitelist
-
public class Whitelist extends java.lang.Object
TheWhitelist
class provides a client for reading in a set of integers from a file; reading in a sequence of integers from standard input; and printing to standard output those integers not in the whitelist.For additional documentation, see Section 1.2 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
-
-
方法概要
修饰符和类型 方法 说明 static void
main(java.lang.String[] args)
Reads in a sequence of integers from the whitelist file, specified as a command-line argument.
-
-
-
方法详细资料
-
main
public static void main(java.lang.String[] args)
Reads in a sequence of integers from the whitelist file, specified as a command-line argument. Reads in integers from standard input and prints to standard output those integers that are not in the file.- 参数:
args
- the command-line arguments
-
-