how to use if statement with char in java code example Example: if operator == java char if(operator == 'a') //Characters or Char must be put in '' { }