标签:安卓 随机 排列
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