I've written a java code that basically returns an answer when I ask it a question! The answers are just random so I can ask it a question and it doesn't reply with a smart answer! Like "How are you today?" The program will reply with whatever pre-programmed answers I've written, so it might reply "Don't ask me again" or "Yes, but I don't like it!". It just picks a random answer!
I want to make this so it can understand what I'm asking it and give an answer based on that? So I ask "How are you?" and it replies "I'm fine thank you!" etc. I'm guessing there is a way for the java program to understand certain words and give an answer based on those words?
What would I need to look into to do this? Or is this out of my league at the moment as I've only started learning Java about 3 weeks ago!
I'm the type of person who learns better by doing what I need to learn! If I sit reading books about Java it doesn't sink in unless I think of something and try to do it! (if that makes sense).
It would be cool if this could connect to the internet and answer the questions from there, but no biggie!