[java] How to print multiple variable lines in Java