docs: public static double searchMax(double[] doubleArray) {
          if(doubleArray.length == 0) {
              throw new IllegalArgumentException("The array you provided does not have any elements");
          }
  
          double max = doubleArray[0];
  
          for(int i = 1; i < doubleArray.length; i++) {
              if(doubleArray[i] > max) {
                  max = doubleArray[i];
              }
          }
  
          return max;
      }