Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

EclipseʹÓÃActiveX¿Ø¼þ£¨OCX£©¿ª·¢Java³ÌÐò

    ±¾·¶ÀýÒÔʹÓÃÀ´µçÏÔʾActiveX¿Ø¼þJDComport.ocxΪÀý£¬ËµÃ÷ÔõÑùÔÚJavaÖм¯³ÉActiveX¿Ø¼þ¡£
1¡¢¿ª·¢»·¾³£ºEclipse£¨JavaÖ÷Á÷¿ª·¢¹¤¾ß£©
   £¨1£©ÐèÒªÓõ½SWT¡¢Visual Editor²å¼þ£»
   £¨2£©EclipseÈí¼þ¼°ÆäÏà¹Ø²å¼þ¿Éµ½ http://www.eclipse.org/downloads/ ÏÂÔØ¡£
2¡¢ÐèÒªÓõ½JDC ......

´«ÖDz¥¿ÍJAVAÅàѵ2010 5 9


½ñÌìÊÇÏîÄ¿µÄµÚÈýÌìÁË£¬ºÍ×òÌìµÄÄÚÈݲ¶à£¬ËùÒÔ½ñÌìµÄ×ܽáûÓÐÎ§ÈÆÏîĿչ¿ª£¬ÎÒÖ®ËùÒÔ£¬ÒªÄóöCVS/SVNÀ´ËµµÄÔ­ÒòÊÇÒòΪ°æ±¾¿ØÖÆÆ÷·Ç³£µÄÖØÒª£¬ÒòΪÒÔºóÎÒÃǽøÈ빫˾֮ºó£¬µÚÒ»´ÎÊÂÇé¾ÍÊǸæËßµ¥ÈË¿ª·¢µÄģʽ £¬´ó¼Ò¶¼ÖªµÀÔÚÆóÒµÀïÃæ£¬ÊDz»ÊÇÊÇÒ»¸öÈË¿ª·¢µÄ£¬ÊÇЭ×÷¿ª·¢¡£ËùÒÔ£¬×÷Ϊһ¸öÓпª·¢¾­ÑéµÄͬ־¶¼ÖªµÀ£¬ÕâÁ ......

JavaµÄµ¥ÀýģʽÀý×Ó

1. ÏÈдһ¸öSingletonµÄclass
package stone;
public class Singleton {
    private static Singleton instance;
    private Singleton() {}
    public static Singleton getInstance(){
        if(instance==null)
  &n ......

Java ÖеÄλÔËËã


ÒÆÎ»ÔËËã·û

    °üÀ¨£º
    “>> ÓÒÒÆ”£»“<< ×óÒÆ”£»“>>> ÎÞ·ûºÅÓÒÒÆ”
Àý×Ó£º
-5>>3=-1
1111 1111 1111 1111 1111 1111 1111 1011
1111 1111 1111 1111 1111 1111 1111 1111
Æä½á¹ûÓë Math.floor((double)- ......

JavaµÄ¹¤³§Ä£Ê½Àý×Ó

1. ¼òµ¥¹¤³§:
(1). ´´½¨Êä³ö(Output)½Ó¿Ú
package stone;
public interface Output {
    public int MAX_COUNT =10;               // ×î¶à¿É´òÓ¡¶àÉÙÌõ¼Ç¼
    public void show();     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ