Conditional operator
<p>What is wrong in this code<br><code>if(getResponseDataMap().containsKey("A"){
          a.setText(getResponseDataMap().get("A").toString);
}</code></p>

<p>Converted like this .</p>

<p><code>getResponseDataMap().containsKey("A")?a.setText(getResponseDataMap().get("A").toString()):""</code></p>

<p>where getLocalRequestDataMap is a HashMap . And setText is function of android</p>

<p>It give compile time error <br>
Multiple markers at this line<br>
    - Type mismatch: cannot convert from String to 
     boolean<br>
    - Syntax error, insert ")" to complete Expression<br>
    - Syntax error on token ")", delete this token<br></p>
