Hello,
I will try to explain you my problem here. I created a generic class:
Here is the code for it
With that, I can instantiate objects like this:Code:Public interface mclass <T,U> { ... }
What I wish I could do it here:Code:mclass <String, boolean> a = new mclass <String,boolean>();
Is there a way to make an optional type with generics? If there is one then please let me know. I am the interested on here.Code:mclass <String> a= new mclass <String>();
Bookmarks