How To Get Min And Max Of An Array Java