StringBuffer s=new StringBuffer();
Random arandom=new Random();
s.append(arandom.nextInt(10)); 
labelshownum.setText(s);
在labelshownum.setText(s);
这里出错,请问要如何才能输出?