[java] How can I print to the same line?