Join David Gassner for an in-depth discussion in this video Controlling list order with LinkedList, part of Java Advanced Training.
In the Java Essential Training Course, I showed how to use an ArrayList class to contain an…order list of data.…The ArrayList is high performance and very easy to use.…But it has a drawback, you can add new items to the end of an ArrayList, but you can't…arbitrarily place new items within it, and that's where the LinkedList class comes into play.…I'll do a demonstration of the LinkedList class in this project, use LinkedList.…As with previous projects, I have a set of classes, I'll be able to use a super class…named Olive, and subclasses named Golden, Kalamata, Ligurio, or Picholine.…
I'll place the cursor into the empty main method, and I'll declare an instance of the LinkedList class.…As with other collections, I can identify the type of object that will be contained…within the list, and I'll use the superclass Olive.…I'll name this object list, and I'll instantiate it with the class's constructor.…
Now, I'm going to add a couple of items to the list, I'll use list.add, and I'll instantiate…
- Installing Java on Windows and Mac OS X
- Installing Eclipse
- Using new features such as simplified generics
- Working with advanced class structures (member, local inner, etc.)
- Using the Reflection API
- Navigating inheritance trees
- Managing unordered and ordered sets
- Peeking and polling with queues
- Testing and error handling
- Managing files and directories
- Working with I/O streams
- Next steps with Java
Skill Level Advanced
1. Getting Started
2. Java 7 New Features
3. Using Advanced Class Structures
4. Using the Reflection API
5. More of the Collections Framework
6. Testing and Advanced Exception Handling
Using the finally keyword5m 40s
7. Managing Files and Directories in Java 7
8. Working with I/O Streams
9. Working with Multi-threading
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.