code: public static boolean isLong(String input) {
          try {
              Long.parseLong(input);
              return true;
          } catch (Exception e) {
              return false;
          }
      }
docs: Return true or false if the input is a long
  @param input
  @return boolean