Java Development Basics-Practice ③ Advanced Programming-

problem

Let's make a calculator that only adds and subtracts. Numbers and operators are passed as arguments.

conditions

Roughly, I expect the following results.

Input value result
1 + 2 + 3 The calculation result is 6
1 + 2 - 3 The calculation result is 0
1 plus 2 plus 3 Operator is invalid

Recommended Posts

Java Development Basics-Practice ③ Advanced Programming-
Java development training
[Java development] Java memory
java programming basics
Java development environment
java Generic Programming
Constraint programming in Java
Java programming basics practice-array
Java programming (class method)
Java development link summary
java development environment construction
[Development] Java framework comparison
Java programming (class structure)
All about Java programming
java competitive programming memo
Java Programming Thread Runnable
Modern Java Development Guide (2018 Edition)
Amazing Java programming (let's stop)
Java programming (variables and data)
Java programming basics practice-for statement
Java development environment (Mac, Eclipse)
Java programming basics practice-switch statement
First Java development in Eclipse
Java Development Basics ~ Exercise (Array) ~
[Java] Basic terms in programming
[Eclipse Java] Development environment setting memo
Prepare Java development environment with Atom
Competitive programming private cheat sheet (Java)
Java Functional Programming Exercise Book --zipWith-
Introduction to Functional Programming (Java, Javascript)
About the current development environment (Java 8)
Build Java development environment (for Mac)
Html5 development with Java using TeaVM
Java development environment (Mac, VS Code)
Summary of object-oriented programming using Java
Install Java development environment on Mac