title: Java- How can I get an array of numbers through a GUI
body: <p>I am trying to build something which needs an array of numbers entered by the user. The problem is, I don't know how to do this. I was thinking about using a JTextField but they are in string format not numbers... (I am struggling to word this out :\   ) The textfield's getText method is designed to get a String not an array. Can someone please help me? I will be EXTREMELY grateful if you do as I have been trying for ages :) Thanks in advance.</p>