More work is required when you deal with a multiple selection list. While you can still use getSelection( ) to return a string array populated with all the selected items, you must perform more processing to interact with any given single item.
Example 7-3 demonstrates how to deal with multiple selected items returned from a call to getSelection().