title: Java and enum with scanner
body: <p>I have a problem with an enum. I have a class <code>Type</code> where I have two enums: <code>RIGHT</code> and <code>LEFT</code>. 
  In other class I have object of class <code>Type</code>, named <code>value</code>. 
  I have a loop: </p>
  
  <pre><code>if (currentLvl.verify(value)) {
      totalPoint++;
  }
  </code></pre>
  
  <p>where <code>currentLvl.verify(value)</code> is a method which verifies if value is correct. My problem is how I can get <code>value</code> from user. I want the user, before loop if, to write his value and after that if <code>value</code> is correct, <code>totalPoint++</code>. I want use a scanner but I can't do <code>value = scanner.nextInt();</code>.  How I can get <code>value</code> from the user and his value imput to variable <code>value</code>?           </p>