Searching

Emily Wilson
3 min read
Study Guide Overview
This study guide covers linear/sequential search algorithms. It explains how to search within ArrayLists and integer arrays to find an element and return its index (or -1 if not found). Implementations for both ArrayLists and integer arrays are provided. Binary search is mentioned as another search algorithm but will be covered later.
#Linear / Sequential Search
One of the main applications of ArrayLists is to search, that is to see if an element is actually in an ArrayList and to return its index if it is.
The simplest searching algorithm, and the only one we will learn in this unit, ...

How are we doing?
Give us your feedback and let us know how we can improve