Saturday, September 27, 2014

Sample 2


public interface testt {

}

public final class Algorithm implements testt{

    public void runAlgorithm() {
        System.out.println("running the algorithm");
        try {
            // do something  here - 
            // simulate some real time-consuming operation here             
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        
    }

    @Override
    public void test() {
        // TODO Auto-generated method stub
        
    }
}

No comments:

Post a Comment