CASE | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

CASE

Can anyone help me to resolve this? the program is asking for 2 numbers, and then an operator (+,-,*,/) At the end the program should show me the result that made with the numbers and the operator. please check the link https://code.sololearn.com/c0A207a23A10

18th May 2021, 9:32 PM
Matias Nicolas Elia
Matias Nicolas Elia - avatar
1 Answer
+ 1
To use Scanner import Scanner class . import java.util.Scanner ; --------- Remove the extra curly braces from end . --------- Use equals method of string to compare values , i.e. operador.equals("*"). "==" Compares object references .
18th May 2021, 10:39 PM
Abhay
Abhay - avatar