Find space in string

final char space = ' ';

Method String::charAt() returns a char, not a String:

while (s.charAt(l) != space) {

3 Likes