Skip to content

Instantly share code, notes, and snippets.

@ckob
Created April 13, 2016 15:16
public int countWords() {
int totalWords=0;
for (String s : strFitxer) {
for (String i : s.split(" ")) {
if (!i.isEmpty()) {
totalWords++;
}
}
}
return totalWords;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment