Upgrade subject to access all content
A student wants to create a binary search algorithm that uses an ArrayList of Strings.
Which of the following is a typical precondition?
The Strings in the ArrayList must be composed of all uppercase or all lowercase letters.
The Strings in the ArrayList must be composed of the same number of characters.
The String being searched for must be contained in the ArrayList.
The ArrayList must be sorted.
The ArrayList must be of even size.