Find The Frequency Of A Number In An Array In Java