import java.util.Arrays; /** HW #8, Problem 4. * @author */ public class Inversions { /** A main program for testing purposes. Prints the number of inversions * in the sequence ARGS. */ public static void main(String[] args) { System.out.println(inversions(Arrays.asList(args))); } /** Return the number of inversions of T objects in ARGS. */ public static > int inversions(List args) { return 0; // REPLACE WITH YOUR ANSWER } }