Classic problems solved with Java