How does List <Integer> in Java distinguish between element and index when an integer is passed?
In a sheet of an abstract type, how does it determine the argument is an index or an element? For example, if a LinkedList calls remove (1), how does the computer know if it is removing a second element or an integer element with a value of 1?
Thank!
+3
Yibo Liu
source
to share
No one has answered this question yet
See similar questions:
154
or similar:
3324
1782
1315
1270
1249
707
697
625
593
589