ranjan java practice