@@ -0,0 +1,931 @@
+package com.hackerrank.contests.daysOfCode_30;%0A%0Aimport java.lang.reflect.Method;%0A%0Aclass Printer%0A%7B%0A%0A   //Write your code here%0A%09public void printArray(Object%5B%5D object) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09for (Object output : object) %7B%0A%09%09%09System.out.println(output);%0A%09%09%7D%0A%09%09%0A%09%7D%0A%0A%7D%0A%0Apublic class Day21_Generics %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%09Printer myPrinter=new Printer();%0A        Integer%5B%5D intArray = %7B 1, 2, 3 %7D;%0A        String%5B%5D stringArray = %7B%22Hello%22,%22World%22%7D;%0A        myPrinter.printArray( intArray  );%0A        myPrinter.printArray( stringArray );%0A        int count=0;%0A%09%09for (Method method : Printer.class.getDeclaredMethods()) %7B%0A            String name = method.getName();%0A            if(name.equals(%22printArray%22))%0A              count++;%0A        %7D%0A        %0A        if(count%3E1)System.out.println(%22Method overloading is not allowed!%22);%0A        assert count==1;%0A%0A%0A%09%7D%0A%0A%7D%0A

Create Day21_Generics.java