It is necessary to implement a method using generalized type parameters, which will take an array as an argument and output it to the console. The input arrays can be of different types - int, float, String . Without using built-in Java methods such as Arrays.toString , etc. How can this be done? The code that I wrote is incorrect. Why?
public class PrintOutArray<T>{ public static void printOutArray(<T>[] array){ for (int i = 0; i < array.length; i++){ System.out.print(array[i]); } } }