I have just started to use android studio recently and currently I am working on a Roman Numeral Translator app. The app\'s interface looks like this: Application interface<
Make your translator()
method return a string which contains the final output.
So before the while
statement in that method, declare a string such as
String result = null;
and in the loop append the popped values to this variable like, result += stack.pop()
.
Now, the place where you call the translator(integer)
method, do numeralInput.setText(translator(integer))
instead of translator(integer)