Problems with instruction flouw

My application is running sequentially until a cerain line (as expected), but when it is in the middle of a certain if statement it goes back a few lines, one or two lines only. And then it gets looping around like this. What do I do?
[241 byte] By [Ricardo_Santosa] at [2007-9-23]
# 1
> What do I do?Post the code. (Not all of it, just what's relevant. And put it in [code] and[/code] tags.)
jverda at 2007-7-8 > top of java,Java Essentials,New To Java...
# 2

if ((((p-1)<0) || ((q-1)<0)) && entrar) //it returns to here

{

NoMudancas NovoNo = new NoMudancas(Palavra2Copia, Palavra1Copia, (TamPort-Palavra1Copia.length()));//eventually after this instruction, and

regras.add(NovoNo); //frequently after this instruction

Palavra2Copia = "";

Palavra1Copia = "";

}

Ricardo_Santosa at 2007-7-8 > top of java,Java Essentials,New To Java...
# 3
Then one or more of the following is true:* That bit of code is in a loop.* new NoMudancas and regras.add end up calling the method that contains that if.* You've got multiple threads.
jverda at 2007-7-8 > top of java,Java Essentials,New To Java...