I have a problem with mysql database when I try to find a code that can help me with getting multiple results for the word "get". I find only one suggestion when I search through a database. Here is what I get
Enter a word to search_______________: get
Consider this alternative____________: access (E.g. You can access some of the best lawyers)
But I have other entries that are also important when it comes to the word "get", and the words that can fit here as alternatives are 7. So what can I do in Java to solve this problem? I have a table called grammarchecker, and a column named wrongwords, while the other one is rightwords.
How can I code this in Java? I have watched some videos on hashing a dictionary, regular expressions on matching and pattern matching on arrays, but regular expressions cannot do it in JAVA on a mysql database. Secondly, when it comes to Mysql database, hashing is mostly done on a text file. Is it possible to get multiple results for the word "get" with this kind of function in java: rs.next()
Because I don't know how Hashing a dictionary from mysql database is possible. I just want a solution.
My problem is getting multiple answers from Mysql database for different words through the scanner in java. Not just for the word get!