An intelligent scheme by java.