ArrayLinearSearch in java