Let’s say I have 3 textfields on a JFrame Form. I need to get the values in the textfields and sum them up. And I want to do it with a loop. I want to make my textfields’ names txt1, txt2, and txt3. So would you please help me with the syntax?
Share
Initializing an array
After you’ve input in the textField,