trying to get the selected items string out of a materialbetterSpinner but it shows can't resolve symbol getSelectedItem();(Which is for spinner). :  

MaterialBetterSpinner university;

university = (MaterialBetterSpinner) findViewById(R.id.university);

and my select code is---

 university.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long arg3) {
                String seluniversity = (String) university.*getSelectedItem();*--here is the issue