class Search{ Node first, last, t; static class Node{ int data; Node next; // constructor Node(int d){ this.data =d; this.next = null; } } void create(int a[], int n){ first = new Node(a[0]); last = first; for(int i=1; i