This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
Okay I need to create a sort method that will sort double nodes into an ascending list. The elments in the nodes will be Strings so I will need to use a compareTo method in order to tell if it is greater than or less than the String being compared to. Well in our instructions, we are supposed to be using generics. So how can I use a compareTo method if we are using generics? Or is there another way to go about using the insertion sort method of sorting double nodes in a list?? Thanks in advance!