This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: However, when declaring an object, you have to use <T> LinkedList declaration exactly the same as ArrayLists LinkedList<Integer> llint = new LinkedList<Integer>(); toString Method StringBuilder(); .append(string) - add items This allows you to create only 1 string while still adding items Simply adding to a string will create a new string every time Must return sb.toString() at the end NOTE: Single quote for characters, double quote for strings!...
View Full Document
This note was uploaded on 02/29/2012 for the course 198 112 taught by Professor Venugopal during the Spring '09 term at Rutgers.
- Spring '09