Inner classes are better methods

October 2nd, 2006

One Response to “Inner classes are better methods”

  1. Ricky Clarkson Says:

    I feel I must point out that ‘throw new’ is 2 keywords, not one.

    public void doSomething(String a)
    if (a!=null) { return calc(a); }
    throw prepareException();

    RuntimeException prepareException()
    return new RuntimeException(”The exception has been prepared”);

Leave a Reply