> I have Question
> how do we assigen a method to a string when its not
> equal
> example a is not equal b
Take a look at the String documentation: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html (maybe equals(...))
I think a better place for these trivial questions is the [url=http://forum.java.sun.com/category.jspa?categoryID=5]Fundamentals forum[/url].
Good luck.