We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Probably the remove, the string ' ' doesn't exist, you'd need to do s1.remove(' '.toCharArray()[0]) because it's a set of Character so you need to remove the char ' ' not the string ' '
Pangrams
You are viewing a single comment's thread. Return to all comments →
Probably the remove, the string ' ' doesn't exist, you'd need to do s1.remove(' '.toCharArray()[0]) because it's a set of Character so you need to remove the char ' ' not the string ' '