YOU SAID:
i knew an answer in class today
INTO JAPANESE
今日は授業で答えを知っていました
BACK INTO ENGLISH
I knew the answer in class today
INTO JAPANESE
今日の授業で答えを知った
BACK INTO ENGLISH
I learned the answer in today's class
INTO JAPANESE
今日の授業で答えを学びました
BACK INTO ENGLISH
I learned the answer in today's class
That didn't even make that much sense in English.