Problem with "String Index Out Of Bounds Exception"

Try

while(value.length > 0  && value.charAt(counter)!=’/’){ 
  counter++;
  pull+=value.charAt(counter);
}
3 Likes