title: Java Scanner Reading an input line
body: <p>I was wondering how can I make a scanner in java that will read a line that you input.  For example:</p>
  
  <pre><code>package first.test;
  import java.util.Scanner;
  
  public class FirstTest {
  
      public static void main(String[] args) {        
          Scanner input = new Scanner(System.in);
          int binaryout;
  
          System.out.println("This converts base 10 numbers to binary numbers.");
          System.out.println("Please enter your Base 10 Number:");
          //I WANT THE INPUT TO GO HERE!!!!!!!!
  
         }
  }
  </code></pre>
  
  <p>Any help would be great!</p>
  
  <p>EDIT: Well, looking back at this question, the answer is blatantly obvious, do a google search. yes i did, but the problem is that i was such a noob, i couldnt modify or apply ideas to my projects. sorry for the inconvenience. if there are any ideas on how to edit the question to make it relevant, that would be great. because its just so bad, i dont know how.</p>