java.lang.InterruptedExpectation is never thrown in body of corresponding try statement (error message)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



java.lang.InterruptedExpectation is never thrown in body of corresponding try statement (error message)



I keep getting the error message "exception java.lang.InterruptedExpectation is never thrown in body of corresponding try statement"


while (counts < 100) // Test to see if count is less than 100
try

System.out.print('u000C');
counts = counts + 101;

catch(InterruptedException ex)

Thread.currentThread().interrupt();




How can I fix this issue





Don't try to catch an exception not thrown.
– shmosel
1 min ago





you might add a more specific title
– Adrian
1 min ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard