Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Generic Types > Working with Generic Types

11.2. Working with Generic Types

To use a generic type you define a suitable parameterized type that provides the desired type arguments for each type parameter. For example, you previously saw:

SingleLinkQueue<String> queue =
        new SingleLinkQueue<String>();


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint