Implement the generic replicate method. It should return a list containing multiple copies of the given value.

Complete the following file:

import java.util.ArrayList; import java.util.List; public class GenericUtil { /** Replicates a value a given number of times @param value the value to be replicated @param count the number of replications @return a list containing the given number of copies of the value */ public static ... replicate(... value, ... count) { ... } }

Use the following file:

import java.util.List;

public class GenericUtilTester
   public static void main(String[] args)
      List<String> threeHellos = GenericUtil.replicate("Hello", 3);
      System.out.println("Expected: [Hello, Hello, Hello]");
      List<Integer> five42s = GenericUtil.replicate(42, 5);
      System.out.println("Expected: [42, 42, 42, 42, 42]");