aspose file tools
The moose likes Java in General and the fly likes Accessing data structure Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Accessing data structure" Watch "Accessing data structure" New topic
Author

Accessing data structure

Jackie Davis
Greenhorn

Joined: Mar 04, 2006
Posts: 23
Hi I am not sure how to solve this problem. I have the follwing code



How do I access c1vertices[0] 's 'x' element (i.e -2)?

Thanks
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
You would need to set up a way to access the variables from within the class definition of xyz.
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1295
Unless you have a class xyz that you are not showing, it looks like xyz is just a local reference to a float array. If that is the case, you aren't setting it up properly. What you want is an array of arrays.


[ March 05, 2006: Message edited by: Garrett Rowe ]

Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Accessing data structure
 
Similar Threads
JTable-Getting Data out to db
Exception -- java.lang.StackOverflowError
Something i'm extremely confused on
Threads not running concurrent?
Game Programming Problem! J2ME