trouble getting input via CMD - java
<p>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.</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>    public class TestFile(){

            Scanner inp = new Scanner(System.in);

            public static main(String[] args){
                    long inp = inp.NextLong();
                    // prompts
                    String input = Long.valueOf(inp);

                    System.out.println(input);

            }


    }
</code></pre>
