blob: 9d056a6d1250b14c13a19930b7b2fa71fdd6e09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/**
*
*/
package de.fhswf.in.inf.java1.aufgabe12;
/**
* A class that provides a main.
*
* @author $Author: $
* @version $Revision: $, $Date: $ UTC
*/
public final class UpnMain
{
/**
* Private constructor for utility class.
*
*/
private UpnMain()
{
}
/**
* Main entry point for the exercise 11.
*
* @param args
* Command line arguments.
*/
public static void main(String[] args)
{
UPN test = new UPN();
test.calculate("5 3 - 2 * 10 9 - / 10 6 - 8 6 - 2 * / -");
System.out.println(test.getResult());
test.calculate("-3.1415 abs");
System.out.println(test.getResult());
}
}
|