Android Studio Spinner otrzymuj wybrany element

Spinner spinner = (Spinner)findViewById(R.id.spinner);
String text = spinner.getSelectedItem().toString();
Jesus