+ 3
Anyone can tell that how can I print two names in java ??
3 Respostas
+ 1
Thankyou
+ 1
There's three ways actually:
String name1 = "John Doe";
String name2 = "Jane Smith";
System.out.println(name1 + name2);
System.out.printf("%s %s", name1, name2);
System.out.print(name1 + name2 + "\n");
0
System.out.print("name"+"name");?