[Java] 纯文本查看 复制代码
for (int i = 0, j; i < list.size(); i++) {
boolean f = true;
for (j = 0; j < list.size(); j++) {
if (list.get(i).equals(list.get(j)) && i != j) {
System.out.println(list.get(i).toString() + "获得了缘分大礼包");
f = false;
break;
}
}
if (f) {
System.out.println(list.get(i).toString() + "获得了普通大礼包");
}
}
[align=right][align=left][font=微软雅黑][size=3] [/size][/font][/align]