0
I do not want to repeat every time system.out.print. Is it possible to reapeat one time??Thank you
3 odpowiedzi
+ 2
System.out.println(result+"\n"+result1+"\n"+result2)
0
thank you so much
0
You can also use String.format()
System.out.println(String.format("%d\n%d\n%d", result, result1, result2));
https://www.google.com/amp/s/www.geeksforgeeks.org/java-string-format-examples/amp/
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)