Ok, that is a really good method, but i want the user to input as many numbers as they would like. I figured how to parse the
string so that if the user enters: 2 3 4 5 into JTextArea then it would parse it using split method of String. Sure enough i was able to sum up the numbers. However when the user enters numbers in a list format like :
2
3
4
5
then i can't use the same split regex. Now i need to know how to split that : (