Quote:
Originally posted by tnb3993
// Infinite loop here:
int i = 0;
while( i < length){
aChar = choice.charAt(i);
aChar += N;
sbb.append(aChar);
}
test = sbb.toString();
}
public void decrypt(String d){
StringBuffer sbb = new StringBuffer("");
choice = d;
StringBuffer sb = new StringBuffer(choice);
int length = choice.length();
// Infinite loop here also
int i = 0;
while( i < length){
aChar = choice.charAt(i);
aChar -= N;
sbb.append(aChar);
}
test = sbb.toString();
}
}
|
You might want to consider doing something with "i", i++ would probably work
Good luck.
once again I turn something that is way to easy i++ and forget it
thanks
