Class Allowlist


  • public class Allowlist
    extends Object
    The Allowlist 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 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