Create only one Scanner object java
<p>I'm trying to create one Scanner object to use in multiple places.</p>

<pre><code>import java.util.Scanner;
private static Scanner keyboard;
public void doesSomething(String stringName){
    keyboard = new Scanner(System.in);
    ...
}

public static void main(String[] args){
    keyboard = new Scanner(System.in);
    ...
}
</code></pre>

<p>I previously tried using the new keyword in the creation of that instance variable but that didn't work because of some of the specifics of my code, but that's not my question. My question is simply- are these two Scanner objects or is this one object?</p>