View Single Post
Old 04-19-2006, 04:47 PM   #9 (permalink)
Vorph
Never Go Full Retard
 
Vorph's Avatar
 
Join Date: May 2002
Location: Hell
Posts: 5,651
Quote:
Originally Posted by Bunkertor 7
Are you trying to make an array of 6 integers with the q[6], because a single variable name with q[x] will cause a compile time error.

The way to define arrays in java is

datatype[] name = new datatype[x], where x is the number of elements you want.
Ahh, forgot about that. Like I said, it's been 10 years and I never really cared for Java anyway. It took me years to stop complaining about having to switch from plain old C to C++ (and lately C#). ^^

And also, like Benito mentioned, I should've put in property gets rather than accessing the properties directly... couldn't remember how Java did it and then I ended up forgetting to fix it. I think he covered the rest, at any rate.

Quote:
Again, I thank you quite a bit for helping me with this tedious project.
No problem.
__________________

Last edited by Vorph : 04-19-2006 at 04:51 PM.
Vorph is offline   Reply With Quote

 
Uberguilds Network