• Post Reply Bookmark Topic Watch Topic
  • New Topic

error message  RSS feed

 
Fran Montanez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While trying to compile my program I got this error.

Points is the object that my vector is made up of

addElement(java.lang.Object) in java.util.Vector cannot be applied to (double)tp.addElement((((Points) tp.get(i)).gety()*(double)Math.cos(rtri*xRotate)) - (((Points)tp.get(i)).getz()*(double)Math.sin(rtri*xRotate)));


can anyone tell me what it means?
 
C. Nimo
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like you're trying to use a method which takes an Object (the addElement method) and give it a primitive (a double).

Nimo.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!