posted 13 years ago
Here is the entire code, it's a gui so there's a lot of that there,
There is extraneous code in there as I've been looking at it and commenting out sections and whatnot. I get that the event listener is a void, so I can't return anything out of there, so how can I modify the code to produce the three variables per iteration of the while loop to create an array, or arraylist? I went with arraylist since the different variables will not create an array with a set value for the number of rows, though I suppose I could create the array like , right? Basically I want to take all the answers from the amoritization table for interest and principle paid, and sum them and then create a pie chart out of those answers. I think I can figure out how to do that, but I'm having a heck of a time figuring out how to return what I want from the while loop.