code: public static int getLCM(int... arg) throws Exception {
          if (arg == null || arg.length == 0) {
              throw new Exception("parameters must more than one.");
          }
          if (arg.length == 1)
              return arg[0];
  
          int tmp = lcm(arg[0], arg[1]);
  
          for (int i = 2; i < arg.length; i++) {
              tmp = lcm(tmp, arg[i]);
          }
  
          return tmp;
      }
docs: 获取多个数字的最小公倍数
  
  @param arg
  @return
  @throws Exception