string array in spinner
<p>i have an array which is populated in the spinner adapter.
now i wanna change the size of the array! is it possible?
help! 
thank u
`public void classpopulate() {
        if (PEP.getUser() == null) {
            return;
        }</p>

<pre><code>    classdetails = masterDataManager.getClassSections(PEP.getUser()
            .getUsername(), getApplicationContext());
    spnrClass = (Spinner) findViewById(R.id.spnrClass);
    spnrSubject = (Spinner) findViewById(R.id.spnrSubject);
    classname = new String[classdetails.size() + 1];
    classname[0] = "SELECET CLASS";

    for (int i = 1; i &lt; classdetails.size() + 1; i++) {

        classname[i] = classdetails.get(i - 1).getClass_name() + "  "
                + classdetails.get(i - 1).getSection_name().toString();

    }

    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) {
                    // LinearLayout layoutSpinnersubj = (LinearLayout)
                    // findViewById(R.id.layout_spinner);
                    // RelativeLayout subject_Text
                    // =(RelativeLayout)findViewById(R.id.layoutsubjecttext);
                    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>`</p>
