Renames the item to the specified name.
Syntax
void
rename
(
String
name
) throws AlreadyExistsException
Parameters
-
name –
new name for the item
Exceptions
-
AlreadyExistsException class –
if there is already an item by that name in the parent collection.