Spinner Java code added