Not sure what is going wrong ..
package com.codegym.task.task15.task1507;
import java.util.*;
/*
OOP: Method overloading
Requirements:
1. The Solution class must implement 10 printMatrix methods with different parameters.
2. The Solution class must be public.
3. All of the Solution class's methods must be static.
4. All of the Solution class's methods must be public.
*/
public class Solution {
public static void main(String[] args) {
printMatrix(2, 3, new ArrayList());
printMatrix(2, 3, new Integer(8).shortValue());
printMatrix(2, 3, new Double(8d));
printMatrix(2, 3, new Long(8));
printMatrix(2, 3, new Float(8.8));
printMatrix(2, 3, (Boolean)true);
printMatrix(2, 3, Integer.parseInt("8"));
printMatrix(2, 3, new String("8").toCharArray());
printMatrix(2, 3, null);
}
public static void printMatrix(int m, int n, String value) {
System.out.println("Filling with String objects");
printMatrix(m, n, (Object) value);
}
public static void printMatrix(int m, int n, Object value) {
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
System.out.print(value);
}
System.out.println();
}
}
}