Are you sure you have compiled the above-posted code? Unless it was a copy-paste mistake, it's missing a close curly brace right at the end of the code listing to close off the class. Once the close...