File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to use different Java types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to use different Java types" Watch "How to use different Java types" New topic

How to use different Java types

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 102
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

Joined: Aug 16, 2005
Posts: 15081

Those things between angle brackets are called generics.

Have a look at this tutorial: Lesson: Generics

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: How to use different Java types
It's not a secret anymore!