title: Backslash (\) behaving differently
body: <p>I have small code as shown below</p>
  
  <pre><code>public class Testing {
      public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          String firstString = sc.next();
          System.out.println("First String : " + firstString);
          String secondString = "text\\";
          System.out.println("Second String : " + secondString);
      }
  }
  </code></pre>
  
  <p>When I provide input as <strong>text\\</strong> I get output as </p>
  
  <pre><code>First String : text\\
  Second String : text\
  </code></pre>
  
  <p>Why I am getting two different string when input I provide to first string is same as second string.</p>
  
  <h2><a href="http://ideone.com/chNqf" rel="nofollow">Demo at www.ideone.com</a></h2>