Originally posted by joseph okon:
pls don't laught ! can't think of any stuff to make it work
[fbr - added code tags]
[ December 11, 2007: Message edited by: Fred Rosenberger ]
One error I can see is that you are trying to use equals to compare two integers. Primitive data types (such as int) don't have methods. You need to use == to compare them.
Fix that and if it still doesn't compile, post the error messages you are getting (exactly as they appear). Once it's compiling we can then tackle the logic.