title: Java String index with "\n"
body: <p>with this String:</p>
  
  <pre><code>String test = "hey\nyo\nsup\nyello";
  </code></pre>
  
  <p>and I call</p>
  
  <pre><code>System.out.println(test.indexOf("yello")); 
  </code></pre>
  
  <p>I get 11, how is that number produced? and does "\n" count as a character in the String?</p>