2016-05-29から1日間の記事一覧
public class NonOverlappingRand { ArrayList<Integer> array; NonOverlappingRand(int num){ this.array = new ArrayList<Integer>(); for(int i=0;i<num;i++){ this.array.add(i); } } public NonOverlappingRand(ArrayList<Integer> _array) { this.array = _array; } public int getValue() throws Exception{ if(this…</num;i++){></integer></integer>