Test task
Write a console Java application that performs a set of specified arithmetic operations.
Operations:
- Addition of 2 or more numbers
- Multiplication of 2 or more numbers
- Multiplication of the first 2 numbers and addition with the 3rd number
An application can receive parameters either from a file or by input from the console. An application can output the result either to a file or to the console. The mode is determined by command line arguments. If the argument value is specified as "-", then this means working with the console, otherwise with a file.