Stores an element at the specified position. @param index index of the element to replace @param element element to be stored
(final int index, final int element)
| 97 | * @param element element to be stored |
| 98 | */ |
| 99 | public void set(final int index, final int element) { |
| 100 | if(index >= list.length) list = Arrays.copyOf(list, newCapacity(index + 1)); |
| 101 | list[index] = element; |
| 102 | size = Math.max(size, index + 1); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Checks if the specified element is found in the list. |
no test coverage detected