I am writing a program with a GUI that reads a number of values from a textbox, adds them all to an array, and gets the sum and average. When I run the code with the textbox