結果 : write a java program to print second min and second max element in array