Hello.
I can't figure out why the following code is not working. Hope someone could help me.
First one is 'remove( )'
I want to check if the nameField is in the collection or not.
If it is in the collection, I want to remove it from the collection.
I'm using SortedMap m = new TreeMap();
I have the following error message
"method remove(java.lang.String, project06.App.Employee) not found in interface java.util.SortedMap"
the second is "firstKey"
I want to make sure if the collection is empty or not. If it's empty, show an error message. if it's not empty, show the first record in the collection.
The following is the error message I'm getting:
"method firstKey(java.lang.String, <any>
not found in class project06.App"
Finally, get( ).
I want to find a specific record from the collection.
The following is my code.
The following is the error message
"method get(java.lang.String, double) not found in interface java.util.SortedMap"
I would appreciate any suggestion/help/advice.
Thanks in advance.
[ March 31, 2003: Message edited by: Cindy Glass ]