Im having a bit of a problem with this code each time i execute it it gives me an error
String index out of range: \'n\'
n - is the no. of characters that is entered in the tex
Strings are indexed starting at 0. Your second for loop is set to end at b.length, which will always be 1 greater than the highest index for that string., Change it to j < b.length instead.