結果 : java program to find smallest and largest element in an array