Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check the string has spaces in it in java

// Check for white Spaces in Java

String str = "Test Word";
if(str.indexOf(' ') != -1){
  return true;
} else{
  return false;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #spaces #java
ADD COMMENT
Topic
Name
6+5 =