compare 2 chars javas code example Example: java operater == char if(operator == 'a') // character or char needs to be put into '' { }