+ 1

Can anyone find what's the problem is?

Why it's not entering into if loop and not printing the results the same letters? https://code.sololearn.com/cz52XGqc5Ohx/?ref=app

2nd Feb 2021, 12:15 PM
Gajendra Jangid
Gajendra Jangid - avatar
3 Answers
+ 1
Gajendra Jangid ur way of using substring to get the char is wrong use a simpler method a.charAt(index) where index is the numerical index of that character in the string. https://code.sololearn.com/cBUb8T5q3284/?ref=app
2nd Feb 2021, 12:55 PM
Abhay
Abhay - avatar
+ 1
Where's the code Gajendra Jangid
2nd Feb 2021, 12:19 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Thanks alot for helping!!!😁✌
2nd Feb 2021, 3:00 PM
Gajendra Jangid
Gajendra Jangid - avatar