Searching online, I found a method I needed that can merge arrays. It was designed to take as many parameters as necessary, and of any datatype. This is what I need it to do, but I don’t know how to properly call it! Here’s what the method looks like:
public static <T> T[] arrayMerge(T[]... arrays)
{
blah blah blah
}
The only way I could think of to call it was byte[] result = arrayMerge(a, b, c); (where a, b, and c all refer to byte[]s), but this doesn’t work. How can I call it? Thanks!
I think generic types can only work with classes, not primitive types. So, they would work for
Byte[], notbyte[].