Skip to content

A simple java program which evaluate the result for an arithmetic expression. It also supports floating-point numbers along with decimal numbers.

License

Notifications You must be signed in to change notification settings

pradipta21/Arithmetic-expression-evaluation-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Arithmetic-expression-evaluation-

A simple java program which evaluate the result for an arithmetic expression. It also supports floating-point numbers along with decimal numbers. The expression can contains parentheses (you must balance the parentheses) and the binary operator like +,-,/,* along with the ^(power operator). Give the input expression in the form of string.

Usage

  • Use the test.java file as the driver file where you can pass the your arithmetic expression.
  • Call the evaluate function and pass the expression as argument in the form of string to get your result.
  • Two examples were provided in the test.java file, have a look at it and change it according to your need

About

A simple java program which evaluate the result for an arithmetic expression. It also supports floating-point numbers along with decimal numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages