Hinting in java