Escape Sequences in Java

Brandon Rozek

August 28, 2017

Sometimes you want to format your outputs. This is a quick cheatsheet containing the differerent escape sequences

 

<th class="tg-yw4l">
  Escape Sequence
</th>
<td class="tg-yw4l">
  \n
</td>
<td class="tg-yw4l">
  \t
</td>
<td class="tg-yw4l">
  \b
</td>
<td class="tg-yw4l">
  \&#8221;
</td>
<td class="tg-yw4l">
  \&#8217;
</td>
<td class="tg-yw4l">
  \\
</td>