Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT calculator  RSS feed

 
david torrance
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm beginner for JAVA and working on this program for my project.. I need your help that I have problem with COS, SIN, SQT, and dot (".") for calculator with using AWT. I believed that these problems because of conflict int and double.. Maybe other more errors. I hope you can tell me how to solve these problems. Thank you so much!

 
Piet Souris
Rancher
Posts: 1816
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi David,

first of all: don't use the old AWT, use Swing.

Just had a glance at your code, can't comment on the contents yet, but I tried

and got an error here.
Have you compiled the program? What are the errors that you get reported?

Greetz,
Piet
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!