RSS

Tag Archives: Linked List with Generics

Simple LinkedList Implementation with Java Generics


Java generics are introduced with in 2004 J2SE 1.5. This concept is really important and it will help a lot in programing. I’m not going to explain the whole generics concept here but I will use the generics to implement the LinkedList. With the generics you don’t want to do the type casting anymore that will really avoid the runtime exceptions. See the following code snippet and enjoy your programming.

Advertisements
 
Leave a comment

Posted by on June 15, 2014 in data-structures, java

 

Tags: , ,

 
%d bloggers like this: