結果 : write a java program to find min and max elements in given array