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

¼òÒ×JAVA»ñÈ¡ÍøÒ³ÓÐЧÓÊÏ䵨ַ

//  ¼òÒ×JAVA»ñÈ¡ÍøÒ³ÓÐЧÓÊÏ䵨ַ ---by 77
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class solo7 {
 public static void main(String args[]){
  new Win();
 }
}
class Win extends Frame implements ActionListener,Runnable{
 Button button;
 URL url;
 TextField text;
 TextArea area;
 byte b[]=new byte[118];
 Thread thread;
 Win(){
  text=new TextField(20);
  area=new TextArea(12,12);
  button=new Button("È·¶¨");
  button.addActionListener(this);
  thread=new Thread(this);
  Panel p=new Panel();
  p.add(new Label("ÊäÈëÍøÖ·:"));
  p.add(text);
  p.add(button);
  add(area,BorderLayout.CENTER);
  add(p,BorderLayout.NORTH);
  setBounds(60,60,360,300);
  setVisible(true);
  validate();
  addWindowListener(new WindowAdapter(){
   public void windowClosing(WindowEvent e){
    System.exit(0);
   }
  });
 }
 public void actionPerformed(ActionEvent e){
  if(!(thread.isAlive()))
   thread=new Thread(this);
  try{
   thread.start();
  }
  catch(Exception ee){
   text.setText("ÕýÔÚ¶ÁÈ¡"+url);
  }
 }
 private boolean isNameAdressFormat(String email){  
   boolean isExist = false;  
   Pattern p = Pattern.compile("\\w{1,}@\\w{1,}
\56\\w{1,}");  
   Matcher m = p.matcher(email);  
   boolean b = m.matches();  
   if(b) {   
    isExist=true;  
 &nbs


Ïà¹ØÎĵµ£º

javaµÄ¹¤×÷Ô­Àí

1.2.1 javaÐéÄâ»ú(1)
¡¡javaÐéÄâ»úÊÇÈí¼þÄ£ÄâµÄ¼ÆËã»ú£¬¿ÉÒÔÔÚÈκδ¦ÀíÆ÷ÉÏ£¨ÎÞÂÛÊÇÔÚ¼ÆËã»úÖл¹ÊÇÔÚÆäËüµç×ÓÉ豸ÖУ©°²È«²¢ÇÒ¼æÈݵÄÖ´Ðб£´æÔÚ.classÎļþÖеÄ×Ö½ÚÂë¡£javaÐéÄâ»úµÄ"»úÆ÷Âë"±£´æÔÚ.classÎļþÖУ¬ÓÐʱҲ¿ÉÒÔ³ÆÖ®Îª×Ö½ÚÂëÎļþ¡£java³ÌÐòµÄ¿çƽ̨Ö÷ÒªÊÇÖ¸×Ö½ÚÂëÎļþ¿ÉÒÔÔÚÈκξßÓÐjavaÐéÄâ»úµÄ¼ÆËã»ú»òÕßµç×ÓÉ ......

JavaÓïÑÔµÄÌØµã(1)

¡¡1£® ¼òµ¥¡¢ÃæÏò¶ÔÏóºÍΪÈËËùÊìϤ
¡¡¡¡javaµÄ¼òµ¥Ê×ÏÈÌåÏÖÔÚ¾«¼òµÄϵͳÉÏ£¬Á¦Í¼ÓÃ×îСµÄϵͳʵÏÖ×ã¹»¶àµÄ¹¦ÄÜ£»¶ÔÓ²¼þµÄÒªÇ󲻸ߣ¬ÔÚСÐ͵ļÆËã»úÉϱã¿ÉÒÔÁ¼ºÃµÄÔËÐС£ºÍËùÓеÄÐÂÒ»´úµÄ³ÌÐòÉè¼ÆÓïÑÔÒ»Ñù£¬javaÒ²²ÉÓÃÁËÃæÏò¶ÔÏó¼¼Êõ²¢¸ü¼Ó³¹µ×£¬ËùÓеÄjava³ÌÐòºÍapplet³ÌÐò¾ùÊǶÔÏ󣬷â×°ÐÔʵÏÖÁËÄ£¿é»¯ºÍÐÅÏ¢Òþ²Ø£¬¼Ì³ÐÐÔ ......

JAVaÃæÊÔÌâ1

Java»ù´¡·½Ãæ: 
1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£ºÇø±ðÈçÏ£º
×÷ÓÃÓò           µ±Ç°Àà       Í¬Ò»package  ×ÓËïÀà       ÆäËûpackage
public& ......

ѧjavaµÃÕâÑùѧ£¬Ñ§Ï°¶«Î÷ȷʵҲµÃÕâÑù

Èí¼þ¿ª·¢Ö®Â·ÊdzäÂú¾£¼¬ÓëÌôս֮·,Ò²ÊdzäÂúÏ£Íû֮·¡£JavaѧϰҲÊÇÈç´Ë£¬Ã»Óнݾ¶¿É×ß¡£ÃÎÏëÏñ¡¶ÌìÁú°Ë²¿¡·ÖÐÐéÖñÒ»Ñù±»ÎÞÑÂ×Óõ®õ­¹à¶¥¶øÇáËÉ»ñµÃÒ»¼××Ó¹¦Á¦£¬ÊǺܲ»ÏÖʵµÄ¡£Ã¿ÌìÑöÌì´ó½Ð"ÌìÉñ°¡£¬Çë´Í¸øÎÒÒ»±¾¿û»¨±¦µä°É"£¬Êâ²»Öª¼´Ê¹Äã»ñµÃÁË¿û»¨±¦µä£¬³ýÁËÊÜ×Ô¹¬ÆäÉíÖ®¿àÍ⣬ÄãÒ²²»Ò»¶¨³ÉµÃÁË"¶«·½²»°Ü"£¬µ¹ÊdzÉ"Î÷·½Ê§ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ