Writer writer = new Writer(); String data = writer.toString();/* the value is not casting and displaying null...*/
Is there any other way to convert
If you want a Writer implementation that results in a String, use a StringWriter.
Writer
String