Código
//Diccionario Online 0.1 //Coded By Doddy H import java.util.Scanner; import java.net.*; import java.io.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { String code; String palabra; palabra = host.nextLine(); code = toma("http://es.thefreedictionary.com/" + palabra); Pattern uno = null; Matcher dos = null; uno = Pattern.compile("<div class=runseg><b>1 </b> (.*?)[.:<]"); dos = uno.matcher(code); if (dos.find()) { } else { } } String re; hc.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12"); while ((re = nave.readLine()) != null) { conte.append(re); } nave.close(); return conte.toString(); } } //The End ?