Why do I get this error? (Exception in thread "Thread-4" - timeout value is negative)
After I've been running my program for a while, it freezes and gives me this error in the console: Exception in thread "Thread-4" java.lang.IllegalArgumentException: timeout value is negative at java.lang.Thread.sleep(Native Method) It gives me a line to where the error occurs, which is...