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