// Copyright (c) 1996, 1997, 1998 Bruno R. Preiss, P.Eng. // $Author: brpreiss $ // $Date: 1998/12/14 02:57:41 $ // $RCSfile: Application1.java,v $ // $Revision: 3.4 $ package Opus5; import java.io.*; /** * Application program that uses a stack to implement an RPN calculator. * @see Algorithms#calculator * @author Bruno R. Preiss, P.Eng. * @version $Id: Application1.java,v 3.4 1998/12/14 02:57:41 brpreiss Exp $ **/ public class Application1 { //[ final String copyright = "@(#) Copyright (c) 1998 by Bruno R. Preiss, P.Eng."; //] /** * Invokes the calculator routine. * @param args The command-line arguments. Ignored. **/ public static void main (String[] args) { try { Algorithms.calculator ( new InputStreamReader (Terminal.in), new PrintWriter (Terminal.out, true)); } catch (IOException exception) { Terminal.out.println (exception); } } }