0

How can I add space between names in output

15th Apr 2023, 10:44 AM
Mikias Sisay
Mikias Sisay - avatar
13 ответов
+ 4
"AJ" + " " + "Milkas"
15th Apr 2023, 11:02 AM
A͢J
A͢J - avatar
+ 4
Kailash Yandrapu In which programming language are you talking about?
15th Apr 2023, 11:46 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 4
Ugulberto Sánchez actually bro he talk about in Java
15th Apr 2023, 3:44 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
Kailash Yandrapu If you input the string by user Like I store name in name variable then you can write like this:- System.out.println("Hello "+name); '+' means concatenation and after that you give space And if you want simple print then you can write like this:- System.out.println("Hello "+"Kailash"); Hope you understand it.
15th Apr 2023, 11:53 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
Kailash Yandrapu I don't understand it properly, you use concat method it's correct or you can use '+' symbol through concatenation it is also another simple way to do that
15th Apr 2023, 12:07 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
Kailash Yandrapu read your question carefully what you ask?
15th Apr 2023, 12:13 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 2
"Ram"+" "+"Raj" "Ram "+"Raj" using String concatination method also you can add space between names
15th Apr 2023, 11:12 AM
Kailash Yandrapu
+ 2
Sakshi In java Take the space as a string and then concate with he names
15th Apr 2023, 11:48 AM
Kailash Yandrapu
+ 1
Sakshi https://code.sololearn.com/c5N0866r2v49/?ref=app I am telling about the concat method in string class in java
15th Apr 2023, 12:01 PM
Kailash Yandrapu
0
Sakshi you are telling that it is simple way to add space between two strings Am i right?
15th Apr 2023, 12:10 PM
Kailash Yandrapu
0
Sakshi your approach using + is simple way but i am saying that there is another approach also
15th Apr 2023, 12:22 PM
Kailash Yandrapu
0
; 1 space and [ ] is line space if I remember correctly. Python
15th Apr 2023, 7:16 PM
BrittaneyV
BrittaneyV - avatar
0
Sakshi heheh 😓didn’t notice
15th Apr 2023, 7:53 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar