Andrei P Andrei P - 11 months ago 39
Android Question

Why can't I use intValue() in autocomplete?

As you can see in the picture below,

and also
don’t appear. If I type them manually, they are impossible to resolve. I’ve cleaned the project, reopened it, but nothing seems to resolve the problem. Anybody has an idea what’s wrong?
is a double.

<code>intvalue()</code> doesn’t appear


You've used double which is a so called "Primitive Data Type"

Change the dataType of currentTemp to Double (with a capital D) and .intValue() should become available.