code: static boolean isNewerVersion(String version, String newestVersion, boolean isEarlyAccess) {
  
          if (version == null)
              return false;
          String[] versionAry = version.split("\\.");
  
          if (!!!isEarlyAccess && versionAry[0].length() == 4)
              return false;
  
          if (isEarlyAccess && versionAry[0].length() != 4)
              return false;
  
          if (newestVersion == null)
              return true;
  
          String[] newestVersionAry = newestVersion.split("\\.");
          for (int i = 0; i < versionAry.length; i++) {
              if (Integer.parseInt(versionAry[i]) > Integer.parseInt(newestVersionAry[i]))
                  return true;
              else if (Integer.parseInt(versionAry[i]) < Integer.parseInt(newestVersionAry[i]))
                  return false;
          }
          return false;
  
      }
docs: Checks if the inputed version is newer than the newest version
  
  @param version
  @param newestVersion
  @param isEarlyAccess
  @return