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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
Tutorials on generics and how they work can be found here http://docs.oracle.com/javase/tutorial/java/generics/index.html