public static String BreakLine(String str){
  int lineLen=0;
  int nextChar=0;
  String newStr="";
  char ch='0';
  while (nextChar < str.length()) {
    ch=str.charAt(nextChar);
    if (ch == '\t') {
      if (lineLen > MAXLEN) {
        newStr=newStr + "\n       ";
        lineLen=7;
      }
    }
 else {
      newStr=newStr + ch;
      lineLen=lineLen + 1;
    }
    ;
    nextChar=nextChar + 1;
  }
  ;
  return newStr;
}

public static String BreakLine ( String str ) { int lineLen = 0 ; int nextChar = 0 ; String newStr = "" ; char ch = '0' ; while ( nextChar < str . length ( ) ) { ch = str . charAt ( nextChar ) ; if ( ch == '\t' ) { if ( lineLen > MAXLEN ) { newStr = newStr + "\n       " ; lineLen = 7 ; } } else { newStr = newStr + ch ; lineLen = lineLen + 1 ; } ; nextChar = nextChar + 1 ; } ; return newStr ; }
the maximum output line length for the breakline method .
