title: Opposite of Java .equals() method?
body: <p>I'm trying to write a little block of code in Java with a do-while loop that asks the user's name. If it isn't the name the code is looking for, then it just repeats itself. For example,</p>
  
  <pre><code>Scanner scan = new Scanner();
  do { 
     System.out.println("whats your name?"); 
     String name = scan.nextLine(); 
  } while ("jack".equals(name));  ////// &lt;&lt;&lt;&lt;
  </code></pre>
  
  <p>It's where I marked with <code>&lt;&lt;&lt;&lt;</code> that I don't know what to do. I need something like <code>!=</code>, but that does not work with strings.</p>
  
  <p>So what can I put here?</p>