cara mencetak dua variabel di baris yang sama di 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