Java : RandomAccess with Examples
RandomAccess (Java SE 21 & JDK 21) with Examples.
You will find code examples on most RandomAccess methods.
Summary
final var arrayList = new ArrayList<String>();
System.out.println(arrayList instanceof RandomAccess); // true
final var linkedList = new LinkedList<String>();
System.out.println(linkedList instanceof RandomAccess); // false
Related posts
- API Examples