Results 1 to 3 of 3
- 09-28-2009, 07:56 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 1
- Rep Power
- 0
- 09-28-2009, 09:06 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
If this is a school assignment then an if-else or switch should do it.
Realize though that the switch would need a char not an int.
Otherwise you can have a look at the JavaScript engine shipped with Java 6.
- 09-29-2009, 02:11 AM #3
You may want to push and pop operands off a stack if you want to have order of operations ie
Java Code:2 + 3 * 6 != ( 2 + 3 ) * 6
Similar Threads
-
make a string as a link
By pharo in forum AWT / SwingReplies: 1Last Post: 04-26-2009, 12:23 PM -
Have a period in string, how to make it look nicer
By JordashTalon in forum New To JavaReplies: 6Last Post: 03-06-2009, 12:23 AM -
simplest way to make 2d array to string
By Tamu in forum Advanced JavaReplies: 4Last Post: 11-25-2008, 04:50 PM -
how do i make a string return a number?
By pjr5043 in forum New To JavaReplies: 6Last Post: 09-15-2008, 04:56 AM -
make a variable name from a string?
By Kinnikinnick in forum New To JavaReplies: 3Last Post: 11-13-2007, 03:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks