Do you know what the ln stands for in println?
Look for an equivalent in Formatter API

Look under conversions header in that doc. It may not be clear straight away, but you will want to escape...