首页 > 移动平台 > 详细

安卓随机排列数据

时间:2015-02-11 01:59:36      阅读:265      评论:0      收藏:0      [点我收藏+]
String[] date = { t1.getText().toString(), t2.getText().toString(),
				t3.getText().toString(), t4.getText().toString(),
				t5.getText().toString() };
		List list = Arrays.asList(date);
		Collections.shuffle(list);
		t1.setText("" + list.get(0));
		t2.setText("" + list.get(1));
		t3.setText("" + list.get(2));
		t4.setText("" + list.get(3));
		t5.setText("" + list.get(4));


安卓随机排列数据

原文:http://luoguoxin.blog.51cto.com/8845916/1613485

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!