edu.princeton.cs.algs4
Class Whitelist
- java.lang.Object
-
- edu.princeton.cs.algs4.Whitelist
-
public class Whitelist extends java.lang.ObjectTheWhitelistclass 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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)Reads in a sequence of integers from the whitelist file, specified as a command-line argument.
-
-
-
Method Detail
-
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.- Parameters:
args- the command-line arguments
-
-
DataMelt 3.0 © DataMelt by jWork.ORG