Trying to make simple calculator

Hello, I am a super noob in java coding but I need to make myself a calculator. It seems simple but for me it's not. So I need a blank field where when I put for example 10 I need the calculator to add 10% and multiply the result by 2.4, so the final result should be 26.4. Greatly sorry if this is the wrong section. I would be glad if you can help me, thanks in advance.

Re: Trying to make simple calculator

Quote:

Originally Posted by

**Buldogg** Hello, I am a super noob in java coding but I need to make myself a calculator. It seems simple but for me it's not. So I need a blank field where when I put for example 10 I need the calculator to add 10% and multiply the result by 2.4, so the final result should be 26.4. Greatly sorry if this is the wrong section. I would be glad if you can help me, thanks in advance.

Read my blog entries: one of them babbles about ScriptEngines; you can use the Javascript engine to evaluate your expressions. The other entry talks about compilers and comes bundled with a bit of code, ready to run. Those entries don't talk about a GUI for the stuff so you have to make the view part yourself.

kind regards,

Jos