My problem is this the previous code words.lenght() is counting all the characters including space. What i want to do is count all characters excluding space which is ascii 32.
public static void main (String args[]){
String words = "kickflip in the face yo!";
int ff = 0;
for(int i = 0; i<=words.length(); i++){
if(words.charAt(i) == (char) 32)
continue;
ff++;
}
System.out.print(ff);