public class Whitelist extends Object
Whitelistclass 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.
|Modifier and Type||Method and Description|
Reads in a sequence of integers from the whitelist file, specified as a command-line argument.
public static void main(String args)
args- the command-line arguments