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

How to use different Java types

 
Dustin Schreader
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking at some code that I may use in my program to look up a customers ID number and I want to do a search to check if the number is in the file before it tries to return the ID and customers info. I know <T> but I didn't know it could be used for other things like <Video> Can someone explain what is going on in this set of code? I mainly want to know how one would <random thing> make that work and what it does.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those things between angle brackets are called generics.

Have a look at this tutorial: Lesson: Generics
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic