kevin-wayne / algs4

Algorithms, 4th edition textbook code and libraries
http://algs4.cs.princeton.edu/code/
GNU General Public License v3.0
7.42k stars 2.68k forks source link

Update ST.java #65

Closed JackLovel closed 4 years ago

JackLovel commented 5 years ago

I run this java file in win10 windows console , but I can't stop input;
so I add this code if(key.equals("q")) break; that can stop input and output result;

JackLovel commented 5 years ago

When I run BinarySearchST.java in win10 console , happen a Uncheck problem.

Added @SuppressWarnings("unchecked") before the following two functions:

public BinarySearchST(int capacity) {...}

private void resize(int capacity) {...}