Write a generic static method print that prints the elements of any object that implements the Iterable<E> interface. The elements should be separated by commas. Place your method into an appropriate utility class.

Complete the following file:


Use the following file:


import java.util.Arrays;

public class IterablePrintTester
   public static void main(String args[])
      String sentence = "Mary had a little lamb";
      Iterable<String> it = Arrays.asList(sentence.split(" "));
      System.out.println("Expected: Mary, had, a, little, lamb");