SyntaxFix
Write A Post
Hire A Developer
Questions
The problem here is
if (stop = true) is an assignation not a comparision.
(stop = true)
Try if (stop == true)
if (stop == true)
Also take a look to the Top Ten Errors Java Programmers Make.