I am trying to figure out part of an assignment and I have been beating my head against a wall for some time now. I\'m trying to transcribe DNA sequences to RNA sequences. I am,
You want 1 less than size , so : if (pos1 >= linkedList.size()) {.
if (pos1 >= linkedList.size()) {
When pos1 == linkedList.size() it will be out of bounds
pos1 == linkedList.size()