
public class OverloadedMethods {

    public static void printArray(Integer[] inputArray) {
	for (Integer x : inputArray)
	    System.out.printf("%s ", x);
	System.out.println();
    }

    public static void printArray(Double[] inputArray) {
	for (Double x : inputArray)
	    System.out.printf("%s ", x);
	System.out.println();
    }
    
    public static void main(String[] args) {
	Integer[] integerArray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	Double[] doubleArray = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 };
	
	printArray(integerArray);
	printArray(doubleArray);
    }

}
