Skip to content
Advertisement

Tag: variadic-functions

Java two varargs in one method

Is there any way in java to create a method, which is expecting two different varargs? I know, with the same object kind it isn’t possible because the compiler does’nt know where to start or to end. But why it also is’nt possible with to different Object types? For example: Is there any way to create method like this? Thank

Advertisement