これは私が持っているものです:
class Person {
Integer id;
String name;
}
// A list of persons:
List<Person> persons
// Now I have something like this:
List<Integer> ids // where the ids are stored in an specific order
基本的には、IDと同じ順序で人物リストを並べ替えたいと思います。
2つのループのように使用して、新しいPerson-Listを作成するより良い方法はありますか?
&&tiaに関して
noircc