2010-04-18から1日間の記事一覧
AllayListの中身を別クラスで定義 例) public class exampleClass { public String text; public int figure; } 上記の例の型をAllayListの型に指定し、int型のfigureを比較してStringのtextをソートしたい。 public static ArrayList getSort(ArrayList<exapmleClass> ex</exapmleclass>…
AllayListの中身を別クラスで定義 例) public class exampleClass { public String text; public int figure; } 上記の例の型をAllayListの型に指定し、int型のfigureを比較してStringのtextをソートしたい。 public static ArrayList getSort(ArrayList<exapmleClass> ex</exapmleclass>…