how to represent spaces as strings in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to represent spaces as strings in java

how will I represent an empty space

2nd Nov 2016, 4:08 PM
Kukoyi Michael Oluwatomisin
Kukoyi Michael Oluwatomisin - avatar
3 Answers
+ 2
Please be more specific normally if you want an empty space as string you just can do something like: string yourString = " "; That would be an easy and simple way.
2nd Nov 2016, 4:27 PM
Florian Schwarzer
+ 1
Yes, right!!
21st Jul 2020, 8:41 PM
Aayush Garg
Aayush Garg - avatar
0
OK that would work
2nd Nov 2016, 10:34 PM
Kukoyi Michael Oluwatomisin
Kukoyi Michael Oluwatomisin - avatar