import java.lang.reflect.Method;

class Solution {
   public static <T> void printArray(T arr[])
   {
       for (T elem: arr) 
           System.out.println(elem);
   }
    public static void main(String args[])
	{
        Integer[] intArray = { 1, 2, 3 };
        String[] stringArray = { "Hello", "World" };
        
        printArray( intArray  );
        printArray( stringArray );
        
        if(Solution.class.getDeclaredMethods().length > 2)
		{
            System.out.println("You should only have 1 method named printArray.");
        }
    }
}