当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Processing IntList.min()用法及代码示例


Processing, 类IntList中的min()用法介绍。

用法

  • .min()

返回

  • int

说明

返回最小值。

例子

IntList inventory;

void setup() {
  size(200, 200);
  inventory = new IntList();
  inventory.append(84);
  inventory.append(15);
  inventory.append(102);
  println(inventory);
  int smallest = inventory.min();
  println(smallest);
}

相关用法


注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 IntList.min()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。