So my Question as i never worked so much with String is :
How can i Check if a Text Contain 1 or More Words ?
Eg. : Word ONE ,
this is WORD two
and this is the word THREE
Thanks All .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to ignore case you can use regex like
This code will count words
WordWORDandwordbut notwords(if you want to includewordschange regex toPattern.compile("word", Pattern.CASE_INSENSITIVE);