searchingAlgorithms/Sequential.java
<filename>searchingAlgorithms/Sequential.javapackage searchingAlgorithms;
public class Sequential{
    public static int search(int[] arr, int target){
        for (int i=0; i<arr.length;i++){
            if (arr[i]==target){
                return i;
            }
        }
        return -1;
    }
    public static void main(String[] args){
        int[] arr = {1,2,3,4,5,6,7,8,9};
        int target = 5;
        System.out.println(search(arr, target));
    }
}