SyntaxFix
Write A Post
Hire A Developer
Questions
Additionally you can ask the method to return the value in a given type this way
<T> T methodName(Class<T> var);
More examples here at Oracle Java documentation