Hi all!
-1
Someone can explain me how can i write the Flag in java?
-2
I have to count the words in a string and check that there are only these letters: ("a,b,c,d,e,f,g,h")
I have to use a flag, to check one by one the words in the string. If they are all included in ("a,b,c,d,e,f,g,h") i have to acquiring them. If they're excluded i have to return to the input.

How can i do?