List Interface

List Interface and Random Access

<aside> 💡 Solution: Set a tagging interface called Random Access.

</aside>

if(c instanceof RandomAccess){
	//use random access algorithm
}
else{
	//use sequential access algorithm
}

The AbstractList interface