• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lost n confussed

 
mike hew
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic