直接遍历不就完了吗? for(int a : ListA){ if(ListB.indexOf(a)!=-) System.out.print(a); } 2、3类似
62,614
社区成员
307,327
社区内容
加载中
试试用AI创作助手写篇文章吧