0

Please help me with this code which I created.

it is named palindrome. it is showing 1 error. need some help

3rd Apr 2017, 1:37 PM
Pradumn Singh
Pradumn Singh - avatar
3 Respuestas
+ 4
Inside the for loop (15th line), you are defining pal in every iteration. Replace it with "pal+=str.charAt(i)". But then, you have to write "String pal=new String()" in the 8th line to avoid "string may be uninitialized" error.
3rd Apr 2017, 2:01 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
Where is the code?
3rd Apr 2017, 2:00 PM
Ani Naslyan
Ani Naslyan - avatar
0
Thank you so much @Krishna
3rd Apr 2017, 2:30 PM
Pradumn Singh
Pradumn Singh - avatar