title: When should I use Java's StringWriter?
body: <p>What is a Java <code>StringWriter</code>, and when should I use it?</p>
  
  <p>I have read the documentation and looked <a href="http://examples.javacodegeeks.com/core-java/io/stringwriter/java-stringwriter-example/" rel="noreferrer">here</a>, but I do not understand when I should use it.</p>