2010-04-01から1ヶ月間の記事一覧
おまじないを信じたとき public static String getString(){ String result_string = new String(); try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "UTF-8")); String line = new String(); while((line = br.readLine()) …
AllayListの中身を別クラスで定義 例) public class exampleClass { public String text; public int figure; } 上記の例の型をAllayListの型に指定し、int型のfigureを比較してStringのtextをソートしたい。 public static ArrayList getSort(ArrayList<exapmleClass> ex</exapmleclass>…