A DESCRIPTION OF THE PROBLEM :
The documentation for the Thread#interrupt() method contains the sentence "If this thread is blocked in an invocation of the wait(), wait(long), or wait(long, int) methods of the Object class, or of the join(), join(long), join(long, int), sleep(long), or sleep(long, int), methods of this class, then its interrupt status will be cleared and it will receive an InterruptedException."
The comma after "sleep(long, int)," should be removed.
See an example at https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#interrupt--
The documentation for the Thread#interrupt() method contains the sentence "If this thread is blocked in an invocation of the wait(), wait(long), or wait(long, int) methods of the Object class, or of the join(), join(long), join(long, int), sleep(long), or sleep(long, int), methods of this class, then its interrupt status will be cleared and it will receive an InterruptedException."
The comma after "sleep(long, int)," should be removed.
See an example at https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#interrupt--