I’m writing a very simple method for my programming class and ran in to an issue I can’t find the resolution for in my notes.
You see I’m supposed to create a method that generates an array of an arbitrary length that has each consecutive value be a multiple of the last (interest rates). The problem is I can’t find why my code doesn’t work, it compiles but doesn’t print what I’d like.
Instead of printing an array with something like (made up values):
[1, 5, 25, 125]
It prints out obscure text like:
[D@64bd4e3c or [D@7041a12f
Can someone please help? Below is a link to an image of my code:

It prints the address that Statements points to.
You need to iterate through
Statements.In pseudocode:
Here is a nice link to help you.