I have added some values to drawPoints[][] and then made an ArrayList Object points that is
ArrayList points=new ArrayList();
points.add(drawPoints);
Now i want to retrieve the value of drawPoints from points, how can i do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to access first
drawPointsin your ArrayList withand then you will be able to get values with for example
Here’s a little example of a program that prints values of two 2D arrays that are stored in an ArrayList: