私は持っている:
ArrayList<List<Integer>> group = new ArrayList<List<Integer>>();
group.add(Arrays.asList(1, 2, 3));
group.add(Arrays.asList(4, 5, 6));
group.add(Arrays.asList(7, 8, 9));
最初、2番目、3番目の列と最初、2番目、3番目の行の最大値を見つけるにはどうすればよいですか?
これは私が試したことです:
int aMaxR1, aMaxR2, aMaxR3;
int aMinC1, aMinC2, aMinC3;
aMaxR1 = Collections.min(group.get(here could be first row));
aMaxR2 = Collections.min(group.get(here could be second row));
aMaxR3 = Collections.min(group.get(here could be third row));
aMaxC1 = Collections.max(group.get(here could be first column));
aMaxC2 = Collections.max(group.get(here could be second column));
aMaxC3 = Collections.max(group.get(here could be third column));