+ 4
I need a help
I don't know what troubles the compiler...may you please resolve themđor suggest if anything which may helpđđ https://code.sololearn.com/cE7W7TuWP1fZ/?ref=app
4 Respostas
+ 3
I did not go through the code because there are more than few errors.
This is how I would do it.
https://code.sololearn.com/c8RLfmWp3331/?ref=app
+ 6
Because of the empty character literal ' ':
str2=str2+ ' ' Character.toUpperCase(str1.charAt(i+1));
In a String you can use " ".
This will also not work:
if(str1.charAt(i)=="")
" " is an empty String, not a character. ' ' will not work but
Character.isWhitespace(char c) does the job.
if(Character.isWhitespace(str1.charAt(i))){
}
But I guess your program has a logical problem.
+ 5
Avinesh
Denise RoĂberg
Thank you so much for helping međ
Now I am confused that which answer shall I mark as the bestđ
+ 2
Ooh gr8 mujhe to pta tk ni tha iske bare mđ