I'm trying to get through the strict Java methods and operators, but now, trying to “translate” part of the PHP code to Java (Android), I'm a little stuck.
In PHP:
if ($row['price']>'0'){
(.. do something if price is defined - and higher than zero ..)
}
The problem is that $ row ['price'] can be empty (in Java: null?) Or contain '0' (zero). But how can I encode this in Java in a smart and not too complicated way?
source
share