結果 : smallest and largest element in array java