Create a new Printer that sends to a StringBuilder object.parambuilder The StringBuilder where you would like output to go. mBuilder = builder;
mBuilder = builder;
mBuilder.append(x); int len = x.length(); if (len <= 0 || x.charAt(len-1) != '\n") { mBuilder.append('\n"); }