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.