<H1>Thread</H1>
<I>How do you feel about this code?</I>

public static int compute(final int number) throws Exception
{ // assume I want to perform computation in separate thread.
    class ComputeHelper implements Runnable
    {
        public int result;

        public void run()
        {
            // Do computation here
            result = 2;
        }
    }

    ComputeHelper helper = new ComputeHelper();
    Thread thread = new Thread(helper);
    thread.start();
    thread.join();
    return helper.result;
}
