I'd like to pass a String parameter as "null"
However, this is for the super method in a constructor - so i cannot do
String s = null;
super(s);
I cannot just do
super(null)
as this will result in an ambiguous method call. I don't want to have an instance variable that is null for this either, that seems inelegant.
Is there a way to create a null String?
NB
new String(null) //does not compile
super((String)null)