Package edu.princeton.cs.algs4
Class Allowlist
- Object
-
- edu.princeton.cs.algs4.Allowlist
-
public class Allowlist extends Object
TheAllowlist
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 allowlist.For additional documentation, see Section 1.2 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
- Author:
- Robert Sedgewick, Kevin Wayne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Reads in a sequence of integers from the allowlist file, specified as a command-line argument.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Reads in a sequence of integers from the allowlist 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
-
-