Deletes the last n element from this FloatArray. n may be larger than the number of elements; in that case, all elements are removed.
(int n)
| 87 | /** Deletes the last <code>n</code> element from this FloatArray. <code>n</code> may be larger than the number of elements; in that |
| 88 | * case, all elements are removed. */ |
| 89 | public void removeLast(int n) { |
| 90 | size -= Math.min(n, size); |
| 91 | } |
| 92 | |
| 93 | /** Trims the capacity of this FloatArray instance to be its current size, |
| 94 | * minimizing the storage of the FloatArray instance. */ |