Have a look at the Javadoc API documentation of class String (a link to the documentation is in my signature below). It contains a lot of useful methods to manipulate strings. There are for example methods to return the number of characters in a string and to get a substring out of a string. With those two methods it's easy to solve your problem.
Experiment with Java yourself, that way you'll learn it much quicker then when someone just gives you the answer.
Yes, that will give you the last two characters of the string, or throw an exception if the string has zero characters or one character. But if you just want to know if the string ends with ")," thenwill do fine. It behaves nicely on empty strings, too.
And I used to develop in that other language too. Not any more. [ December 10, 2007: Message edited by: Paul Clapham ]