07-11-2012, 12:31 PM
Alright, I see the problem.
What you're going to want to do is change this line:
To this:
This is because what you were trying to do was format the TextField as a String. However, you can't make that conversion. So, we need to format the answer (product) as a String, and then display it in the textfield.
What you're going to want to do is change this line:
Code:
String answer = df.format(res);
To this:
Code:
String answer = df.format(product);
This is because what you were trying to do was format the TextField as a String. However, you can't make that conversion. So, we need to format the answer (product) as a String, and then display it in the textfield.