public final static int skipSpaces(final String in,final int start){
  int pos=start;
  while (pos < in.length() && (in.charAt(pos) == ' ' || in.charAt(pos) == '\n')) {
    pos++;
  }
  return pos < in.length() ? pos : -1;
}

public final static int skipSpaces ( final String in , final int start ) { int pos = start ; while ( pos < in . length ( ) && ( in . charAt ( pos ) == ' ' || in . charAt ( pos ) == '\n' ) ) { pos ++ ; } return pos < in . length ( ) ? pos : - 1 ; }
skips spaces in the given string .
