ca.bcit.cst.comp2526.assign2b.solution
Class Main

java.lang.Object
  extended by ca.bcit.cst.comp2526.assign2b.solution.Main

public final class Main
extends java.lang.Object

A program to display the result of a Reverse Polish Notation (RPN) formula.


Method Summary
static void main(java.lang.String[] argv)
          The main entry point, computes the user suplied RPN formula.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] argv)
The main entry point, computes the user suplied RPN formula.

Example usage: Main 10 "1 2 +"

Note that the formula MUST be placed inside of "s.

Parameters:
argv - the command line arguments.

  1. stack size
  2. formula