Check out example codes for "if operator == java char". It will help you in understanding the concepts better.

Code Example 1

if(operator == 'a') //Characters or Char must be put in ''
{
  
}

Learn ReactJs, React Native from akashmittal.com