array with data is reduced and put in the spinner
<p>have an an array</p>

<pre><code>    String classname[]={'a','b','c','d'};
    ArrayAdapter&lt;CharSequence&gt; adapterClasses = new ArrayAdapter&lt;CharSequence&gt;(
                getApplicationContext(), R.layout.spinner_item_class,
                R.id.spinnerclasstxt, classname);
        spnrClass.setAdapter(adapterClasses);
        spnrClass.setSelection(0);

        spnrClass
                .setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {

                    @Override
                    public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                            int pos, long arg3) {
                        classname[0]="";
                        int selectedindex = pos;
                        if (selectedindex == 0) {
                            spnrSubject.setVisibility(View.INVISIBLE);
                        } else {
                            spnrSubject.setVisibility(View.VISIBLE);
                            selectedClass = classdetails.get(selectedindex - 1);

                            subjectpopulate(selectedClass);
                        }
                    }

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

                    }

                });
`
</code></pre>

<p>but the result in dropdown should be
"b
c
d"
 help please!</p>
