• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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?
 
Marshal
Posts: 67418
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
Marshal
Posts: 67418
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!
 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic