File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Error that makes no sense Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Error that makes no sense" Watch "Error that makes no sense" New topic
Author

Error that makes no sense

Robert Prager
Greenhorn

Joined: Feb 27, 2012
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61420
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Robert Prager
Greenhorn

Joined: Feb 27, 2012
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61420
    
  67



And welcome to the Ranch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error that makes no sense