Ok you smart java guys. You helped me so well with my last problem, I have another question to ask you. I am trying to write a program like this..
if the sentence ends with an even number of characters and a question mark, it will output the word 'Yes'. If the sentence ends with a question mark and it is an odd number of characters, it will output the word 'No'. If the sentence ends with an exclamation mark, the output will say 'Wow!'. In all other cases, it will output 'You always say that.'
I almost have it written, but I cannot figure out a way to make it 'stop' when I want it to. Like, after it answers a question and says yes, I want it to stop, right now after it answers the question, it also displays the 'Wow" and 'You always say that' also. Also, it is answering yes when I put a period at the end of the sentence and if a period is at the end of the sentence it should just say, 'you always say that'.