public static boolean isBookSearchUrl(String url){
  return url.startsWith("http://google.com/books") || url.startsWith("http://books.google.");
}

public static boolean isBookSearchUrl ( String url ) { return url . startsWith ( "http://google.com/books" ) || url . startsWith ( "http://books.google." ) ; }
does a given url point to google book search , regardless of domain .
