[java] Overwriting txt file in java