code: private static boolean checkCriticalValue(double score, boolean is_twoTailed, int n, double aLevel) {
          boolean rejected=false;
  
          double criticalValue;
  
          if(CRITICAL_VALUES.containsKey(aLevel)) { //the aLevel is one of the standards, we can use the tables
              if(CRITICAL_VALUES.get(aLevel).containsKey(n)) { //if the n value exists within the table use the exact percentage
                  criticalValue = CRITICAL_VALUES.get(aLevel).getDouble(n);
              }
              else {
                  //the n is too large, use the approximation
                  criticalValue=CRITICAL_VALUES.get(aLevel).getDouble(0);
                  criticalValue/=Math.sqrt(n+Math.sqrt(n/10.0));
              }
          }
          else {
              //estimate dynamically the critical value from the kolmogorov distribution
              criticalValue=calculateCriticalValue(is_twoTailed,n,aLevel);
          }
  
  
          if(score>criticalValue) {
              rejected=true; 
          }
  
          return rejected;
      }
docs: Checks the Critical Value to determine if the Hypothesis should be rejected
  
  @param score
  @param is_twoTailed
  @param n
  @param aLevel
  @return