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