Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

Stack Mathematics Interpreter

My Mathematics Interpreter Implementation In Java

This is an example to show when and why we use Stack Structure in projects and as you see it's really important.

Using

publicclassHelloWorld {
publicstaticvoidmain(String []args){
System.out.println("Hello, World!");
Interpreterinterpreter = newStackMathematicsInterpreter("1+2*3");
System.out.println(interpreter.getResult());
interpreter = newInterpreter("1+2*3+4");
System.out.println(interpreter.getResult());
interpreter = newInterpreter("1+2*3+4*5");
System.out.println(interpreter.getResult());
}
}

© Copyright 2022, Max Base

Releases

Packages

Used by

Contributors

Languages