Thats exactly how I would do it but for some reason the wont allow us to create new array or dataset etc...crazy I know.
anyway, it will clear it up if I post some code so here it is:
int count = 0;
int userID = 0;
int c = 0;
for (i=0;i<size;i++) //Main for loop
userID = customerID[i];
if(userID == customerID[c])
} //end of if statement
} // End secondary FOR loop
System.out.print("Customer:" + userID);
System.out.println(", Transactions:" + count);
count = 0;
} //End of main for loop
I can get it to count and print out but what its doing is printing every single value from the array in the main loop and the count etc.
So the question is...how do I filter the results printed to be only the user ID's once and not every listing in the array.
I need to test for when to print and when not to print. I may get the same count for each customer 1 but each of these customer 1 ID's appear at a different place in the array. This is really the only difference so i need to test for it.
Anyway, any ideas on how to test for this condition. I'm at a loss as to how to do it without breaking the assignment rules.
All help appreciated