First commit
This commit is contained in:
parent
7c07ad2416
commit
aae8344958
34
ReversePolishNotation/src/com/rpn/ReversePolishNotation.java
Normal file
34
ReversePolishNotation/src/com/rpn/ReversePolishNotation.java
Normal file
@ -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<String> params)
|
||||||
|
{
|
||||||
|
BigDecimal result = null;
|
||||||
|
if (null != params && !params.isEmpty())
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user