Some Special Problems solved using Java