object都有string

object都有tostring
String item=spinner.getSelectedItem().toString();
String item01=String.valueOf(spinner.getSelectedItem());
这两种写法一致;
posted @ 2018-03-25 00:08  Gaoyongxian666  阅读(166)  评论(0编辑  收藏  举报