To see, add a println() statement that prints out the contents of strLine after readLine() gives it a value. This line is from your code:what is actually being held in strLine after each readLine()System.out.println(strLine); //print out the code being stored
chatAt() returns a char which is a primitive. You do not use the equals() method with primitives. Use the == operator to compare primitives.