text: Java program to sort an array such that sum of product of alternate element is minimum .
code: import java . util . Arrays ; import java . util . Collections ; import java . util . Comparator ; import java . util . Vector ; class GFG { static int minSum ( int arr [ ] , int n ) {