setting in one class and getting from another class
<p>this is really basic I know, but I just can't see what the problem is... all I want to do is set the value of a variable from one class into an "intermediary" class and retrieve it in a third class (because filterArray will get called from other classes as well, and I want them all to read the same data). But if I do:</p>

<pre><code>b =new GetSet()
b.setBdl(extras);
JSONArray arr= getData.filterArray();  
</code></pre>

<p>using</p>

<pre><code>class GetSet {
  private Bundle params;

  public GetSet() {
    }

  public Bundle getBdl() {
    return this.params;
  }

  public void setBdl(Bundle bdl) {

    params = bdl;
  }
}
</code></pre>

<p>then in the filterArray method, if I try </p>

<pre><code>       Bundle params = new GetSet().getBdl();
</code></pre>

<p>I get all sorts of run time errors, and if I try</p>

<pre><code>Bundle params = GetSet.getBdl();
</code></pre>

<p>it tells me I can't make a static reference to a non-static method.
Where am I going wrong?</p>
