boolean interrupted = Thread.interrupted()which determines if there is an interrupted flag and clears it. Typically if you are performing a long task that doesn't involve file IO or using sleep, then you would have code like:
throw new InterruptedException();
//Rest of code for this loop iteration here.
I have a Masters in computer science. I can answer questions on core J2SE, swing and graphics. Please no questions about JSP or J2ME.
I have experience in Core Java, good background in Java swing/gui, some experience with JNI, Java reflection.
Some experience in bio-informatics.
Basics in c++ and c#
Washington State University
MS in Computer Science from Washington State University and a BS in Mathematics and Computer Science from Central Washington University.