Can't change Char

Hi im generate code when I change char on my word when I click on for example button A .I want there set char on A and change in my invisible word from (–) set A there where is his position.Im generate code in netbeans.Here

if(hadanka.contains(pismeno))
{
for(int i=0;i!=hadanka.length();i++)
if(pismeno.equals(Character.toString(hadanka.charAt(i))))
{
prepsani[i]=hadanka.charAt(i);

}

System.out.println(prepsani);;
} 

everything is ok.hadanka is a guessing word and pismeno is the letter that I chose.
When I use it in my application for android so but errors occur.

Here is my android code

char zvolenePismeno;
public void OnStart (View v)

{
if(odpoved.contains(zvolenePismeno))
{
for(int i=0;i!=odpoved.length();i++)
if(zvolenePismeno.equals(Character.toString(odpoved.charAt(i))))
{
prepsani[i]=odpoved.charAt(i);

}
labOdpoved.setText(String.valueOf(prepsani));
}

}

public void OnA(View v) 
{
zvolenePismeno = 'A';
kliknuti(btn_A);	
}

error i have here if(odpoved.contains(zvolenePismeno)) and here if(zvolenePismeno.equals(Character.toString(odpoved.charAt(i)))).
in the first case the method contains(charsequence) in the type string is not applicable for the arguments (char) and in second cannot invoke equals (String) on the primitive type char
Thank you everyone :slight_smile: