(String[] args)
| 1 | public class NoDupArray { |
| 2 | |
| 3 | public static void main(String[] args) { |
| 4 | NoDupArray x=new NoDupArray(6); |
| 5 | x.insert(9); |
| 6 | x.insert(7); |
| 7 | x.insert(3); |
| 8 | x.insert(8); |
| 9 | x.display(); |
| 10 | x.insert(8); |
| 11 | x.delete(8); |
| 12 | x.display(); |
| 13 | System.out.println("find the value 3 :"+x.find(3)) ; |
| 14 | } |
| 15 | |
| 16 | } |
| 17 |