the constructor of ArrayAdapter is as follows:
ArrayAdapter(Context context, int textViewResourceId, T[] objects)
im new to java & android, i didn't see the data type T[]
before, can anyone explain what it is or give me some web page about it?
The T is either a concrete class type (unlikely), or it is a class generic. Look at your class heading to see if this is the case.
IE
Class SomeClassType<T> {}
Tutorials on generics and how they work can be found here http://docs.oracle.com/javase/tutorial/java/generics/index.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With