BaseMax / StackMathematicsInterpreter

My Simple Mathematics Interpreter Implementation In Java (Designed by Stack Structure)

Repository from Github https://github.comBaseMax/StackMathematicsInterpreterRepository from Github https://github.comBaseMax/StackMathematicsInterpreter

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

public class HelloWorld {
    public static void main(String []args){
        System.out.println("Hello, World!");

        Interpreter interpreter = new StackMathematicsInterpreter("1+2*3");
        System.out.println(interpreter.getResult());

        interpreter = new Interpreter("1+2*3+4");
        System.out.println(interpreter.getResult());

        interpreter = new Interpreter("1+2*3+4*5");
        System.out.println(interpreter.getResult());
    }
}

© Copyright 2022, Max Base

About

My Simple Mathematics Interpreter Implementation In Java (Designed by Stack Structure)

License:GNU General Public License v3.0


Languages

Language:Java 100.0%