title: Is there any way I can use a Scanner object in a different class?
body: <p>So I have a simple Scanner object:</p>
  
  <pre><code>Scanner scan = new Scanner (System.in);
  </code></pre>
  
  <p>I am trying to use this Scanner object inside a method that I have declared in a different class. Is there anyway this can be done? I have also tried using:</p>
  
  <pre><code>public static final Scanner scan = new Scanner(System.in);
  </code></pre>
  
  <p>but this didn't really help</p>