Variables to next activity : <p>I get 3 data string from editText (in 1 activity), and then go to next activity</p>

<pre><code>button.setOnClickListener(new View.OnClickListener() {

    public void onClick(View view) {

        a=editText.getText().toString();

        b=editText2.getText().toString();

        goToActivity2();
    }
});
</code></pre>

<p>and in 2 activity, i want to set new variables user1, user2, like this</p>

<pre><code>public String user1 = a(from 1 activity);
public String user2 = b(from 1 activity);
</code></pre>

<p>Is it possible ? I cant found information about variables in my basics books java.</p>
