• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error that makes no sense

 
Robert Prager
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, my java applet (which is for testing purposes so its not good, no double buffering and the such i know) is giving me an error I don't understand. Here is the code:


The line with the three *'s is where the error shows up. It says:

The AngleCalculation class is:

And it compiles fine. What have I done wrong?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you call a method in Java you do not provide types, just the arguments. You've made other calls correctly in your code, why did you feel the need to code this one differently?
 
Robert Prager
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gah! I guess I was just hasty. I forgot about that aspect when working on this. Though I don't know why I did that for only that one. It is my first time working with the Point variable so I guess I was too caught up in the variable type without realizing I should have gotten rid of them. Haha. Well, thank you. It's always an interesting moment when you realize such a foolish mistake. I will be laughing about this for a while. Thank you again.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


And welcome to the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic