for (int i = 0; i < reports.length; i++) { Products[] products = reports[i].getDecisions; for (int j = 0; j < products.length; j++) { } }
You can't do that as array index in Java starts from 0. But you can access array with index 1 with little modifications.
Example: Consider an integer array "a" with length n
for(int i=0;i
This can be modified as:
int a[] = new int[n+1]; for(int i=1;i