Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java ¸ù¾Ý¹Ø¼ü×Öץȡgoogle ÐÂÎÅ ÍøÂçÊý¾Ý .*

 Óû§ÒªÇóͳ¼ÆËùÌṩ¹Ø¼ü×ÖÔÚÍøÂç³öÏÖµÄÐÂÎÅ£¬ÏÂÃæΪһ¸ö²âÊÔµÄmain·½·¨¡£
package com.net;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
 * @{#} NetTools.java Create on Nov 18, 2009 4:55:57 PM
 *
 * Copyright (c) 2009 by ThinkIT
 * @author Jack He ,jackhexl@gmail.com
 * @version 1.0
 */
public class NetTools {
 private String url = "";// ÇëÇóµÄURL
 private String keyword = "";// ËÑË÷µÄ¹Ø¼ü×Ö
 private StringBuffer strBuffer = new StringBuffer("");
 private List newsList=new ArrayList();//ÐÂÎÅÊý×é
 public static void main(String [] args){
  List list=new ArrayList();
  NetTools nt=new NetTools();
  try {
   list=nt.getNews("", new String[]{"»·±£¾Ö"});
   for(int i=0;i<list.size();i++){
    System.out.println(list.get(i).toString());
   }
   
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
 }
 public List getNews(String url,String[] keywords) throws IOException{
  if(url.equals("")||null==url)
   url="http://news.google.cn/news/search?cf=all&scoring=n&pz=1&cf=all&ned=ccn&hl=zh-CN&q=";
  int i=0;
  this.url=url;
  //¹Ø¼ü×Ö
  for(;i<keywords.length;i++){
   this.keyword+=keywords[i]+" ";   
  }
  this.url+=java.net.URLEncoder.encode(this.keyword,"UTF-8");// ´ø²ÎÊýµÄÇëÇóµØÖ·
  System.out.println("ÇëÇóµØַΪ£º"+this.url);
  URL requestUrl=new URL(this.url);
  // ´ò¿ªÁ´½Ó
  HttpURLConnection con


Ïà¹ØÎĵµ£º

JAVA WEB³ÌÐòÖÐÌí¼Ó¶¨Ê±Æ÷

 
//ÕâÊÇÎҵĶ¨Ê±Æ÷À࣬ÓÃÀ´¶¨Ê±Ö´ÐÐij¶ÎÈÎÎñ£»
package com.my.time;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
public
 
class
 BugXmlTimer  {
   
public ......

·ÖÏíJavaÃæÊÔÖÐÓöµ½µÄһЩ¾­µäËã·¨ÌâÄ¿

1.дһ¸ö·½·¨£¬ÓÃÒ»¸öforÑ­»·´òÓ¡¾Å¾Å³Ë·¨±í
  /**
* ´òÓ¡¾Å¾Å³Ë·¨¿Ú¾÷±í
*/
public void nineNineMulitTable(){
for (int i = 1,j = 1; j <= 9; i++) {
System.out.print(i+"*"+j+"="+i*j+" ");
if(i==j){
i=0;
......

JavaµÄ±³¾°¡¢Ó°Ïì¼°Ç°¾°

Ò»¡¢±³¾°
    ×î½üÒ»Äê¶àÀ´,ÔÚInternetÉϳöÏÖµÄÌرðÎüÒýÈ˵Äʼþ¾ÍÊÇJavaÓïÑÔºÍÓÃJava±àдµÄä¯ÀÀÆ÷HotJava¡£
1991Äê,SUNMicroSystem¹«Ë¾µÄJameGosling¡¢BillJoeµÈÈË,ΪÔÚµçÊÓ¡¢¿ØÖÆ¿¾Ãæ°üÏäµÈ¼ÒÓÃÏû·ÑÀàµç×Ó²úÆ·ÉϽøÐн»»¥Ê½²Ù×÷¶ø¿ª·¢ÁËÒ»¸öÃûΪOakµÄÈí¼þ(¼´Ò»ÖÖÏðÊ÷µÄÃû×Ö),µ«µ±Ê±²¢Ã»ÓÐÒýÆðÈËÃǵÄ×¢Òâ,Ö±µ½1 ......

ѧϰJAVAʱ¼äÈÕÆÚÀà×ܽ᡾z¡¿

Ò»¡¢PythonÖеÄÎļþ¹ÜÀí
Îļþ¹ÜÀíÊǺܶàÓ¦ÓóÌÐòµÄ»ù±¾¹¦ÄܺÍÖØÒª×é³É²¿·Ö¡£Python¿ÉÒÔʹÎļþ¹ÜÀí¼«Æä¼òµ¥£¬ÌرðÊǺÍÆäËüÓïÑÔÏà¶Ô±È¡£
ÒÔÏ£¬Peyton McCullough½²½âÁËÎļþ¹ÜÀí»ù´¡¡£
½éÉÜ
ÄãÍæ¹ýµÄÓÎϷʹÓÃÎļþÀ´±£´æ´æµµ£»ÄãϵĶ©µ¥±£´æÔÚÎļþÖУ»ºÜÃ÷ÏÔ£¬ÄãÔçÉÏдµÄ±¨¸æÒ²±£´æÔÚÎļþÖС£
¼¸ºõÒÔÈκÎÓïÑÔ±àдµÄÖÚ¶àÓ ......

JavaÓïÑÔÈëÃųõѧÕßµÄһЩÇÐÉíÌå»áÓë¹ý³Ì¡¾×ª¸öÀÏÌû¡¿

Java×ÜÓÐËüµÄǧ°ãºÃ´¦Ê¹ÄãÑ¡ÔñËü£¬µ«ÕâЩËæ±ã·­·­Êé»òÔÚÍøÉϹäһȦ¾ÍÄÜÕÒµ½´ð°¸¡£ÔÚ±¾ÎÄÖУ¬±ÊÕß°Ñ×Ô¼ºÑ§Ï°JavaµÄһЩÇÐÉíÌå»áºÍ¹ý³Ìд³öÀ´£¬¹©³õѧÕß×ö¸ö²Î¿¼¡£ ¡¡¡¡ÎÒÔÚѧϰJavaµÄ¹ý³ÌÖÐÖ÷ҪΧÈÆÒÔϼ¸¸ö·½ÃæÀ´Ñ§Ï°£º
¡¡¡¡1£®Ê±¿ÌÌáÐÑ×Ô¼ºJavaÊÇÒ»ÖÖOOPÓïÑÔ¹¤¾ß£¬¶ø²»½ö½öÊDZàÂ룬ֻÓÐÕâÑù²ÅÄÜ×ÜÌå°ÑÎÕºÍÔËÓÃJava¡£
¡¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ