Returns the first item.
()
| 366 | |
| 367 | /** Returns the first item. */ |
| 368 | public char first () { |
| 369 | if (size == 0) throw new IllegalStateException("Array is empty."); |
| 370 | return items[0]; |
| 371 | } |
| 372 | |
| 373 | /** Returns true if the array has one or more items. */ |
| 374 | public boolean notEmpty () { |