• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Error that makes no sense

 
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?
 
Sheriff
Posts: 67403
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Sheriff
Posts: 67403
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


And welcome to the Ranch!
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic