Creating object in method parameters
<p>When creating a method inside a class if you use the parameter:</p>

<p><code>public String Method(ClassName NewObject){}</code></p>

<p>or in my example below:</p>

<pre><code>public String EqualsTo(Deck aCard){}
</code></pre>

<p>will it create a new object of that class within that method? If not anyone mind explaing what I is happening with that parameter?</p>

<p>NOTE: Disregard any minor syntax errors as I just constructed this to get my question across better so this is not a complete class.</p>

<pre><code>import java.util.Scanner;
import java.util.Random;

public class Deck {
private int suit;
private int rank;
private Random generator = new Random();
Scanner in = new Scanner(System.in);

    //Default constructor
    public Deck() {
    suit = suit.random(4);
    rank = rank.random(13);
    }


public String EqualsTo(Deck aCard){}
}
</code></pre>
