protected void sprint(String a){
  if (a == null) {
    stringRepresentation+=getIndentation();
    stringRepresentation+="<null>\n";
    return;
  }
  if (a.compareTo("}") == 0 || a.compareTo("]") == 0) {
    indentation--;
  }
  stringRepresentation+=getIndentation();
  stringRepresentation+=a;
  stringRepresentation+="\n";
  if (a.compareTo("{") == 0 || a.compareTo("[") == 0) {
    indentation++;
  }
}

protected void sprint ( String a ) { if ( a == null ) { stringRepresentation += getIndentation ( ) ; stringRepresentation += "<null>\n" ; return ; } if ( a . compareTo ( "}" ) == 0 || a . compareTo ( "]" ) == 0 ) { indentation -- ; } stringRepresentation += getIndentation ( ) ; stringRepresentation += a ; stringRepresentation += "\n" ; if ( a . compareTo ( "{" ) == 0 || a . compareTo ( "[" ) == 0 ) { indentation ++ ; } }
add a new string to the accumulated string representation .
