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