|
-
March 5th, 2012, 05:51 AM
#2
Re: how to extract specific information from an array list
Why ask the user for a number and then do nothing with it?
You aren't directly storing the x and y co-ords in the ArrayList, you are storing them in a Target object and storing the Target object in the ArrayList. So you need to use one of the ArrayList's retrieval methods such as get(..) to get the Target object and then use whatever methods are available in the Target class to get the x and y values from it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|