I am writing an implementation of the coin change problem. My code runs well enough, with one exception.
My payments i.e number of ways to make change is stored in an ArrayList[]. I'm having trouble printing it. When i try to print it, i get what I guess is the memory address. ([Ljava.util.ArrayList;@5034c75a)
Is there a way to get the length of payments and print it?