English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using Java 5., can I write a program in which I would input a word and it would search dictionary.com and give me the definition of the word and the part of speech. I would like to know how to do so either in a program or in peices, ie what needs to be imported becuase I might do a little work too.

2007-03-23 12:20:06 · 3 answers · asked by mikeduptwo 6 in Computers & Internet Programming & Design

3 answers

Use the java.net package to connect to url's and retrieve content.

Use the javax.swing.text.html to parse the html
alternatively you might want to use regular expressions using java.util.regex to search for strings.

2007-03-23 17:30:50 · answer #1 · answered by Nicodemus C 2 · 0 0

I'd use Perl and come combination of WWW::Mechanize and HTML::Parser or HTML::TokeParser. Java isn't really designed for this kind of work.

2007-03-23 20:23:43 · answer #2 · answered by undercoloteal 3 · 0 0

I would python for that with the pamie api.

2007-03-23 20:20:22 · answer #3 · answered by blazeimurill 3 · 0 0

fedest.com, questions and answers