WinWire Technologies interview question

Write a program in java to take input from the user and perform arithmetic operations, which is also given by the user.