title: inputmismatch error in scanner NextLong() -java
body: <p><em>edit</em>
  As the title stated, I cannot get any input from anyone. It should echo the error of InputTypeMismatch or if you do numbers, then It will say nullreference error. I am looking for words to be input - strings.</p>
  
  <p>Can someone correct this? This is driving me insane. I don't know where to check.</p>
  
  <p>Thanks is advance :)</p>
  
  <pre><code>    Exception in thread "main" java.util.InputMismatchException
              at java.util.Scanner.throwFor(Unknown Source)
              at java.util.Scanner.next(Unknown Source)
              at java.util.Scanner.nextFloat(Unknown Source)
              at TestFile.promptsentence(TestFile.java:54)
              at TestFile.main(TestFile.java:43)
  </code></pre>
  
  <p>Here is a example:</p>
  
  <pre><code>import java.util.*;
  
  public class TestFile{
  
          public static Scanner inp = new Scanner(System.in);
  
          public static void main(String[] args){
                  long inpu = inp.NextLong();
                  // prompts after changing data-type
                  String input = Long.valueOf(inp);
  
                  System.out.println(input);
  
          }
  
  
  }
  </code></pre>