It's funny that you would use precisely these words:
Originally posted by Berdy Ahern: I'm trying to get the value of the selected item
... because the method you want is "getSelectedItem()".
Please do yourself a favor and bookmark this page. You can look up any class of interest and quickly find a list of all its methods. Take a few minutes and get familiar with how this documentation is laid out. Learning to use it well is important!