Answer the question
In order to leave comments, you need to log in
Unusual signature of java.util.ArrayList.toArray(T[]) method
The signature of the specified method is: public <T> T[] toArray(T[] a) . T[] is the return type. The question is - what does <T> mean, what is it called and what is the meaning of it?
Answer the question
In order to leave comments, you need to log in
Honestly, everything can be found through search engines.
Here is a description and an example of the application of the method.
Can't use search engines
It's called Generic Methods
docs.oracle.com/javase/tutorial/extra/generics/methods.html
Here is a good introduction to generics - www.rsdn.ru/article/java/genericsinjava.xml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question