question: public static void writeStringToWriter ( String string , Writer writer ) throws IOException { BufferedWriter bw = new BufferedWriter ( writer ) ; try { bw . write ( string ) ; } finally { bw . close ( ) ; } }
target:  Writes given string to given writer.  Close writer afterwards. 