Jak wydrukować dwie zmienne w tej samej linii w Javie
// Let var1 be the first variable and var2 the second
System.out.print(var1 + " " + var2); // does not advance to next line
// Or alternatively
System.out.println(var1 + " " + var2); // prints and then advances to next line
Wissam