This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am getting a resultset which has a list descriptions. some descriptions will be in spanish and some descriptions will be in english. I need to check for english description in the list and when I get first english description that description should be fetched.
Please revert back how I can check the desc whether it is in english or not.
Is there not a field in the table that indicates which language the text is ? If not, then I don't think there is any guaranteed way of distinguishing them.
You could look for certain characters that are not used (or at least are pretty rare) in English (�, accented vowels). Double consonants (other than ll and rr) are rare in Spanish as is the letter W.
Joined: Jul 21, 2008
As you said there is nothing to do with table. After getting the resultset object I need to check for english description. Is there any spell checker is available in java which i can use for english spell check.