I don't see any relevance of this question to threads..... are the methods supposed to be synchronized?
as it stands, the program returns true when run, without calling setXY(). the static variables x and y are set to their default values of 0.
since you are only calling matchXY(), then both x and y are equal so it returns true!
am I missing something here
[ July 13, 2002: Message edited by: Amir Ghahrai ]
[ July 13, 2002: Message edited by: Amir Ghahrai ]
[ July 13, 2002: Message edited by: Amir Ghahrai ]