0
I am making calculator in android, how to add two integers here. (Refer code in description)
int result = 0; switch(result){ case 1 : numberSeparator = et.getText().toString().split("+"); int firstNumber = Integer.valueOf(numberSeparator[0]); int lastNumber = Integer.valueOf(numberSeparator[1]); int myresult = firstNumber + lastNumber; // 1 + 1 = 2 et.setText("" + myresult); break; }
3 ответов
0
I didn't get your issue. Do you want us to debug your code code, which seems free of bugs. Or do you like us to give you hints for other ways to solve this problem?
0
hint or a solution will be enough bcoz I m stuck here since a week long cannot move further. please help. where am I going wrong?
0
How do you want to solve your input?
By reading complete lines? Are more than one operator per line possible?