private boolean performSearch(String query){
  if (checkInteger(query)) {
    return getComicByNumber(Integer.parseInt(query));
  }
 else {
    return searchComicTitleOrTranscript(query);
  }
}

private boolean performSearch ( String query ) { if ( checkInteger ( query ) ) { return getComicByNumber ( Integer . parseInt ( query ) ) ; } else { return searchComicTitleOrTranscript ( query ) ; } }
checks if the query is integer or text and invokes the according search algorithm
