Accessing values in ArrayList
in
Programming Questions
•
2 years ago
Hi Everyone,
I am new to Processing. I am working on a problem, where I have an ArrayList of x and y coordinates. Now I wish to access a given line in the ArrayList. Having accessed that line, I wish to let the variable xcor be the x coordinate on that line, and ycor be the y coordinate on that line.
Could someone please show me the syntax for accessing a line in such an ArrayList and letting variables such as xcor and ycor be the accessed values?
I really appreciate the help.
Kind regards,
BigBugBuzz
I am new to Processing. I am working on a problem, where I have an ArrayList of x and y coordinates. Now I wish to access a given line in the ArrayList. Having accessed that line, I wish to let the variable xcor be the x coordinate on that line, and ycor be the y coordinate on that line.
Could someone please show me the syntax for accessing a line in such an ArrayList and letting variables such as xcor and ycor be the accessed values?
I really appreciate the help.
Kind regards,
BigBugBuzz
1