The operation of linear search in an array
A simple implementation of linear search in Java. The user will be prompted to input the number of elements in a list which they want to enter. The user then will choose an element to be searched in the list. The linear search algorithm will be automatically performed, and the index at which the target was found will be returned or the code will notify that it could not find the target.