Here's the relevant lines of code:
HashSet<Integer> products = new HashSet<Integer>();
...
Integer[] arrProducts = prodDigs.toArray();`
Any idea why I'm getting the error stated in the question?
I'm using BlueJ as my IDE if it's at all relevant.