@Override public synchronized void stop(){
  if (algorithm != null) {
    try {
      algorithm.stop();
    }
 catch (    IllegalThreadStateException e) {
    }
    kicker=null;
  }
}

@ Override public synchronized void stop ( ) { if ( algorithm != null ) { try { algorithm . stop ( ) ; } catch ( IllegalThreadStateException e ) { } kicker = null ; } }
stop the applet . kill any sorting algorithm that is still sorting .
