馬老師IoT嵌入式物聯(lián)網(wǎng)
public void set(int index, T newValue) {
? ? ? ?rangeCheck(index);
? ? ? ?elements[index] = newValue;
? ?}
? ?/**
? ? * Get element by index.
? ? *
? ? * @param index the element index
? ? * @return the element value
? ? */
? ?public T get(int index) {
? ? ? ?rangeCheck(index);
? ? ? ?return (T) elements[index];
? ?}
標簽: