I have this while statement. which should exit when there is a whitespace or a ; as a char. however it does not exit the loop when either of those conditions are true;
when i use a && it works better but now expects (obviously) both conditions to be true. which still does not help me.
while ( !pt.get(locCursor).equals(';') || !pt.get(locCursor).equals(' ')){
word = word + pt.get(locCursor);
if (locCursor < pt.size()-1){
locCursor ++;
}else{
break;
}
}