I'm currently making a program where if you put multiple values inside a JTextField (Obviously separated by commas), that it will take the values of that and print it out in numeric order. This isn't the whole program, just part of it.
I can set a String equal to the getText() of the JTextField, and then parseInt that to an actual number. The only problem is I don't understand how to make it work for multiple values? I can't set a String equal to the getText() of the JTextField. I can't make an int parseInt the String equal ot the getText() of the JTextField.
If someone could help that would be great.
Only works if I want to put a single value into the JTextField, which is what I don't want.