Skip to content

Instantly share code, notes, and snippets.

@nhojpatrick
Created July 21, 2016 20:22
Show Gist options
  • Save nhojpatrick/d41be832800567d9385b2ca9d6bb6063 to your computer and use it in GitHub Desktop.
Save nhojpatrick/d41be832800567d9385b2ca9d6bb6063 to your computer and use it in GitHub Desktop.
xyzThere
public boolean xyzThere(final String input) {
if (input == null
|| "".equals(input.trim())) {
return false;
}
if (input.contains(".xyz")
&& input.contains("xyz")) {
return false;
} else if (input.contains(".xyz")) {
return false;
}
return input.contains("xyz");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment