Q2. Write a program for: search(LA,ITEM) in Java
1. Search whether the user's entered item is exist or not in the array if exist perform
following
2. Print two right neighbors(item/value) in case no right neighbor print message 'no right
neighbor'
3. Print two left neighbors(item/value) in case no left neighbor print message 'no left neighbor'
Comments
Leave a comment