title: Is there a way to name an object with the value of the String parameter a method has?
body: <p>I've declared a Scanner object and I want a method the sets the name of the Scanner. I thought about something like this:</p>
  
  <pre><code>public static void ScannerSetUp(String ScannerName) {
          Scanner ScannerName = new Scanner(System.in);
      }
  </code></pre>
  
  <p>But I get a message saying that the variable is already defined in the scope. Does anybody know how to do it?</p>
  
  <p>Thank you.</p>