Cómo imprimir dos variables en la misma línea en Java
// 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