Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

String decoding  RSS feed

 
thisum biddhika
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting inputs to my program as strings, like this:
=12+69*98
and i have to compute these values.
I tried to do this by getting the string and divide into sub strings and then to combine those with required opcodes.
(i create an ArrayList to do this)
(I took the integer values of those substrings)

but combining those strings didn't work.

As i very new to java if someone can help me, i would appriciate it.
thanks.
 
Andre Uhres
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to consider this parser:Parser for mathematical formulas
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing Swing related here.
Moving.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!