Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What does "generics" mean in AdapterView<?>  RSS feed

 
AhFai Chan
Ranch Hand
Posts: 81
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again.

I was reaading up on android java and come across this code:


What does the <?> mean?

Is this syntax used anywhere else in Java world?

Can someone please give me some simple examples, or point me to some ?

Thanks.
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AhFai Chan wrote:
Can someone please give me some simple examples, or point me to some ?


Oracle has a tutorial on generics... https://docs.oracle.com/javase/tutorial/java/generics/index.html

Henry
 
AhFai Chan
Ranch Hand
Posts: 81
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
AhFai Chan wrote:
Can someone please give me some simple examples, or point me to some ?


Oracle has a tutorial on generics... https://docs.oracle.com/javase/tutorial/java/generics/index.html

Henry


Thank-you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!