+ 1

Why we use :" " with *"my name is"+first name+last name*

String firstName, lastName; firstName = "David"; lastName = "Williams"; System.out.println("My name is " + firstName +" "+lastName);

3rd Jan 2018, 12:08 PM
Maryam Ben Abbou
Maryam Ben Abbou - avatar
1 Answer
+ 19
//same doubt was asked tomorrow by someone //hope it helpsâ˜ș https://www.sololearn.com/Discuss/968705/?ref=app
3rd Jan 2018, 12:22 PM
Gaurav Agrawal
Gaurav Agrawal - avatar