From: Harry Kakueki Date: 2011-12-10T10:28:08+09:00 Subject: Re: Building a method - Learn to Program Section 9.5 > , but I want to understand what I'd need to do to get it to work with != > method. > > Any insight / help would be appreciated. > > Thanks, > > Emeka > if (reply != 'yes' || reply != 'no') What happens if you type 'yes' ? Then reply != 'no' so this is true. What happens if you type 'no' ? Then reply != 'yes' so this is true. What happens if you type 'foo' ? Then reply != 'yes' so this is true. Try if (reply != 'yes' && reply != 'no') Harry