Writer writer = new Writer(); String data = writer.toString();/* the value is not casting and displaying null...*/
还有其他方法可以将writer转换为字符串吗?
如果我想用它来制作一个String,我会聘请专门的作家。
Writer writer = new StringWriter(); String data = writer.toString(); // now it works fine