I'm new to Java. I'm creating an app in android, and I created a method that takes a varargs of Pair<String, String>
. But I can't seem to pass null in. Is this possible?
Method:
makeJson(Pair<String, String>... keyValuePairs) {
...
}
Caller:
makeJson(Pair.create("reference", null));