Untitled
unknown
plain_text
2 years ago
122 B
6
Indexable
for (Node<T> node : list) {
if (priority < node.priority)
break;
index++;
}
list.add(index, newNode);Editor is loading...
Leave a Comment
for (Node<T> node : list) {
if (priority < node.priority)
break;
index++;
}
list.add(index, newNode);