Is the sentence structure correct? "I think he doesn't like it"

Solution 1:

Changing the order of the words often changes the meaning or nuance.

  1. "I don't think he likes it" is the normal formulation. It focuses on the thoughts and opinions of the speaker. Its purpose is to make a commentary.

  2. "I think he doesn't like it" can be used as a way of contradicting expectations, e.g.

"Don't poke the cat with that stick."
"We're just playing."
"Well, I think he doesn't like it."

This focuses on and directs the attention towards the feelings of the cat -- its purpose is to change someone else's perceptions.

Note that the basic meaning here is, "He doesn't like it. " The addition of "I think" does not indicate doubt on the part of the speaker. It is used to make the statement seem less harsh.

Answer

Yes, it is grammatically correct to say a sentence like "I think he doesn't like it". Just be aware that such a rephrasing usually changes the meaning or requires a particular context.

Solution 2:

"I think he doesn't like it" is grammatically correct.

"I don't think he likes it" grammatically means "there is nothing to make me believe that he likes it" but is used idiomatically to mean "I think he doesn't like it".

Either phrase is completely acceptable, and would normally be taken to mean the same thing. Your English teacher is teaching you to pass English exams, and some marks in language tests are normally award for using idiomatic phrases and sounding "natural". Hence, within that context, I think your teacher's statement of never to use "I think...not..." was fine. However, in the real world, you can use either and there is no problem.