public company(String a, int[] b)
I created a class, company.
ArrayList<company> c1;
int temp;
for(company c:c1) {
if (temp > c.getb()) {
temp = c.getb();
}
There is a list of companies, and a company has a number of integers stored in it as an int[].
I am trying to compare and get the largest value from int[] b.
But my code is showing an error since c.getb() is int[] array so can't be compared by < or >
So, I am not sure how to compare int[] values in the ArrayList.