I'm trying to figure out how to parse a specific input. The input looks like this: "[(x,y) (x,y) (x,y).......(x,y)]"
The "x" and "y" are integer values. Each go into variables called "x" and "y" respectively. Those values are then put into variables in a Node class. I then have an array of those nodes. However, I am struggling to figure out how to efficiently parse the input to get the x and y values. Thanks for your help.
EDIT:
I apologize for not providing any previous code. I had tried using a StringBuffer, but it became really messy, and I didn't know how to tell apart multidigit integers from single digit integers. I didn't mean to imply that anyone write code for me, I was simply asking if there were some various methods I could look up that anyone could recommend, so I apologize for that.