To view a result of mathematical action
<p>I'd like to show the text containing result of addition of two values: one from onespinner selected item, and another from twospinner selected item. But eclipse shows an error in line</p>

<pre><code>text.setText(onespinner.getSelectedItem + twospinner.getSelectedItem);
</code></pre>

<p>What's the matter? Full code goes below.</p>

<pre><code>public class photographer extends Activity implements OnItemSelectedListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Spinner onespinner = (Spinner) findViewById(R.id.spinner1);
    ArrayAdapter&lt;CharSequence&gt; unitadapter = ArrayAdapter.createFromResource(
            this, R.array.onespinner, android.R.layout.simple_spinner_item);
    unitadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    onespinner.setAdapter(unitadapter);
    onespinner.setOnItemSelectedListener(this);

    Spinner twospinner = (Spinner) findViewById(R.id.spinner2);
    ArrayAdapter&lt;CharSequence&gt; courseadapter = ArrayAdapter.createFromResource(
            this, R.array.twospinner, android.R.layout.simple_spinner_item);
    courseadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    twospinner.setAdapter(courseadapter);
    twospinner.setOnItemSelectedListener(this);



}

@Override
public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position,
        long id) {

    TextView text = (TextView)findViewById(R.id.result);
    text.setText(onespinner.getSelectedItem + twospinner.getSelectedItem);

}

@Override
public void onNothingSelected(AdapterView&lt;?&gt; parent) {


}
 }
</code></pre>
