Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.20 KB | None | 0 0
  1. public boolean hasUpperCase(String word) {
  2. if (null != word)
  3. return any(charactersOf(word), new Predicate() {
  4. public boolean apply(Character c) {
  5. return isUpperCase(c);
  6. }
  7. })
  8. else
  9. return false;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement