can we add char with strings? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can we add char with strings?

give answer

7th Apr 2019, 11:53 AM
Bhumit Mehta
Bhumit Mehta - avatar
2 Answers
+ 3
Yes. String str = "Test"; char c = '6'; str = str + c; //Test6
7th Apr 2019, 1:37 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Yes you can. Search for concat string char in google and you will find answers
7th Apr 2019, 1:09 PM
Dragonxiv
Dragonxiv - avatar