private boolean isParagraphChange(String wSpaces){
  int len=wSpaces.length();
  for (int i=0; i < len; i++) {
    char c=wSpaces.charAt(i);
    if (('\n' == c) || ('\r' == c)) {
      for (int j=i + 1; j < len; j++) {
        if (c == wSpaces.charAt(j)) {
          return true;
        }
      }
    }
  }
  return false;
}

private boolean isParagraphChange ( String wSpaces ) { int len = wSpaces . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { char c = wSpaces . charAt ( i ) ; if ( ( '\n' == c ) || ( '\r' == c ) ) { for ( int j = i + 1 ; j < len ; j ++ ) { if ( c == wSpaces . charAt ( j ) ) { return true ; } } } } return false ; }
called with a sequence of whitespaces . it returns a flag indicating if the sequence contains a paragraph change . a paragraph change is defined as a sequence of whitespaces that contains two line breaks .
