how to search array elements present or not using command line argument in java