Hello, Ben.
I'm Marco Antonio from Rio de Janeiro (Brazil).
Some time ago, I made a study to see the differences among Java, Python and PHP, and I made a simple calculator to do that.
Below, is the code of the calculator in Java. I hope it help you.
Note: Some words in the code are in portuguese.
--------------------------------------------------------------------------------
Calculadora:
--------------------------------------------------------------------------------
src/Calculadora.java:
--------------------------------------------------------------------------------
src/Calculo.java:
--------------------------------------------------------------------------------
src/Exibicao.java:
--------------------------------------------------------------------------------
bin/Calculadora.class
bin/Calculo.class
bin/Exibicao.class
--------------------------------------------------------------------------------
build:
--------------------------------------------------------------------------------
build.bat:
--------------------------------------------------------------------------------
deploy:
--------------------------------------------------------------------------------
deploy.bat:
--------------------------------------------------------------------------------
run:
--------------------------------------------------------------------------------
run.bat:
--------------------------------------------------------------------------------
If you also wish the codes in Python and/or PHP, tell me so. I will send them to you too.
Marco Antonio M. Gralha
Postgraduated in Software Engineering with JEE