In the following code, the first if
statement complains that current_guy
can't be a final
but the second if
statement complains that current_guy
isn't a final. I am out of ideas.
final int current_guy=0;
if (a.equals("bf")){
current_guy=1;
}
guy1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
if (current_guy==1) {
// TODO Auto-generated method stub
}
}