@@ -0,0 +1,725 @@
+import java.lang.reflect.Method;%0A%0Apublic class Solution %7B%0A%0A%09public static void main( String args%5B%5D ) %7B%0A%09%09Printer myPrinter = new Printer();%0A%09%09Integer%5B%5D intArray = %7B 1, 2, 3 %7D;%0A%09%09String%5B%5D stringArray = %7B %22Hello%22, %22World%22 %7D;%0A%09%09myPrinter.printArray( intArray );%0A%09%09myPrinter.printArray( stringArray );%0A%09%09int count = 0;%0A%09%09for ( Method method : Printer.class.getDeclaredMethods() ) %7B%0A%09%09%09String name = method.getName();%0A%09%09%09if ( name.equals( %22printArray%22 ) ) %7B%0A%09%09%09%09count++;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09if ( count %3E 1 )%0A%09%09%09System.out.println( %22Method overloading is not allowed!%22 );%0A%09%09assert count == 1;%0A%0A%09%7D%0A%7D%0A%0A%0Aclass Printer %7B%0A%0A%09public void printArray( Object%5B%5D objArray ) %7B%0A%09%09for ( Object obj : objArray ) %7B%0A%09%09%09System.out.println( obj );%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add day 21 solution