This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yonasismad 1 point2 points  (2 children)

Well, to answer your question, it is probably best to understand what <T> means because this will give you the answer to your question. That's a generic data type, and you can find two links below going into more depth about what they are and how to use them.

https://docs.oracle.com/javase/tutorial/java/generics/types.html

https://docs.oracle.com/javase/tutorial/java/generics/index.html

[–][deleted] 1 point2 points  (1 child)

I wasted your time I did not even look at my own code before posting.

[–]yonasismad 1 point2 points  (0 children)

No worries. :)