I have an interface that declares set() method.
One implementing class operates on byte[] arrays, therefore it will implement set(byte[] arr)
Another class operates on int[] arrays, therefore it will implement set(int [] arr).
Since int & byte are primitive types, I’m not sure how to write the interface declaration!
Any ideas? Thanks.
1 Answer