Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In the example - there is no point, this generic can simply be removed. It makes sense in a situation where the method signature must be generic. for examplepublic <T> String method(T t) {...}
This is the syntax for declaring methods that work with generic parameters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question