Skip to content

rodhoward/eCentricJavaCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prototype Calculator

Building a simple Calculator in Java.

Explanation of approach

Using an interface "Operation" with a hashmap based OperationFactory ensures that its easy to add more operations. The main method builds the Calculate class that performs the calculation and prints the result.

Prerequisites

java 1.6+ and ant

I compiled and tested it using Netbeans.

Build

ant

Test

ant test

Run

ant
java -jar dist/ecalc.jar 4 x 4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages