Calling one variable of a class in another class?
<p>Hi I am new to the java programming. I have a instance variable in a class which I should call to another class.It should not be static as per the requirements.The code given below## `</p>

<pre><code>public class Card {

    private String no;
    private String text;
    public Vector totalCards = new Vector();

    public String getNo() {
        totalCards.addElement(no);
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getText() {
        totalCards.addElement(text);
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
</code></pre>

<p>I need  to pass this  "totalCards" vector in another class without making it as a static.How can I pass this value.Can anybody help me. Any suggestions appreciated.</p>
