Answer :

For checking if a string contains white space use a matcher and call its find method.
View image lfstone3

Answer:

^ matches the start of the string.

\s+ means at least 1, possibly more, spaces.

$ matches the end of the string.

Other Questions