Forums Register Login

lost n confussed

+Pie Number of slices to send: Send
The stuff in bold within the code is my area of question.
I try'd the following below the code, but that isn't it, where Am I going a stray?




Attempted code
+Pie Number of slices to send: Send
You need to be a bit more specific about whats going wrong. I can see a syntax error for a missing comma where you instantiate the shapes.

new Sphere (shapes[index]
Integer.parseInt(myFields[c_xCoordinateField]),

It looks like you have to read 4 parameters and based on their values you instantiate shapes. Tell us what compiling issues you faced and post the constructors of your shapes if possible. Also you need to assign the shapes[index] to a shape, not include them in the method call. Add the default else for the error message too.
A timing clock, fuse wire, high explosives and a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 868 times.
Similar Threads
Null Pointer Exception
the instance variable shapes
constructor
Where am I getting this from?
enhanced for loop hangup?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:08:57.