The Artima Developer Community
Sponsored Link

Java Answers Forum
java programming

3 replies on 1 page. Most recent reply: Aug 28, 2003 7:41 AM by David

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
jay dalleda

Posts: 1
Nickname: lestat
Registered: Aug, 2003

java programming Posted: Aug 28, 2003 4:03 AM
Reply to this message Reply
Advertisement
sir/maam! pls send me a sample sourc code in java by creating a standard calculator


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: java programming Posted: Aug 28, 2003 4:47 AM
Reply to this message Reply
I am not sure what kind of calculator you are looking for. If you are looking for a something like input numbers and specify the operator and perform the opperation then its too simple.

But if you are looking for something more complex like a calculator to evaluate expressions, you could use Stack combined with PostFix notation to do this.

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: java programming Posted: Aug 28, 2003 4:55 AM
Reply to this message Reply
Check this link. There is a Postfix.java and Calculator.java

http://www.cs.queensu.ca/home/cisc124/2001f/Slides.html

Hope it helps

David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: java programming Posted: Aug 28, 2003 7:41 AM
Reply to this message Reply
Do your own homework.

Flat View: This topic has 3 replies on 1 page
Topic: ClassCastException Previous Topic   Next Topic Topic: Hashtable

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use