0
Please help me with this code which I created.
it is named palindrome. it is showing 1 error. need some help
3 Respostas
+ 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.
+ 1
Where is the code?
0
Thank you so much @Krishna