java print multiple variables code example
Example 1: printing multiple variables in java
System.out.printf("First Name: %s\nLast Name: %s",firstname, lastname);
Example 2: How to print multiple things in java?
class File_name {
public static void main(String[] args) {
System.out.println("hello " + "world")
}
}