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