From aae83449589b041427e1142ab2d19c71968146de Mon Sep 17 00:00:00 2001 From: vale Date: Wed, 11 May 2016 17:53:26 +0200 Subject: [PATCH] First commit --- .../src/com/rpn/ReversePolishNotation.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ReversePolishNotation/src/com/rpn/ReversePolishNotation.java diff --git a/ReversePolishNotation/src/com/rpn/ReversePolishNotation.java b/ReversePolishNotation/src/com/rpn/ReversePolishNotation.java new file mode 100644 index 0000000..2a60721 --- /dev/null +++ b/ReversePolishNotation/src/com/rpn/ReversePolishNotation.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.rpn; + +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.List; + +/** + * + * @author me + */ +public class ReversePolishNotation +{ + + public static BigDecimal evalRPN(String[] params) + { + return evalRPN(Arrays.asList(params)); + } + + public static BigDecimal evalRPN(List params) + { + BigDecimal result = null; + if (null != params && !params.isEmpty()) + { + + } + return result; + } + +}