I'm first time on that forum. I have a question.
Let's say I have an array
I got the following message:
System.out.println("posx1 = " + msgs);
System.out.println("posx2 = " + msgs);
MSG(TAG): tagid=10, posx=83, posy=55
MSG(TAG): tagid=11, posx=22, posy=12
How can I get just the number for posx and posy from that array? Any idea?
So you get two strings there. So what you have to do is, sub string the original one or use regular expression.
Parse the String using indexOf and substring and Integer.parseInt.
OK, but what do you mean by regular expression?
Regular expression is kind of a way that syntactically analyzed elements used to match patterns of text