title: Calling scanner parameter
body: <p>Ive created two classes, <code>Method</code> and <code>ActionClass</code>. in <code>Mehod</code> class i created <code>passingParameters</code> method  with <code>Scanner</code> parameter and in <code>ActionClass</code> i created an object and called <code>passingParameters</code> method as you see below. but i dont know how to call <code>Scanner</code> parameter. it looks like there is difference between calling <code>Scanner</code> and other parameters. or im wrong? how can i call Scanner in <code>ActionClass</code>?</p>
  
  <pre><code> public class Method{
  
   public void passingParameters(Scanner input){
      int numInput=input.nextInt();
      System.out.println(numInput);
  }
  }
  
  
   public class ActionClass {
  
   public static void main(String[] args) {
      Method newObject=new Method(how to call Scanner? );
      newObject.passingParameters();
  }
  </code></pre>