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

Áù¡¢javaµÄÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(Ïê½âequals·½·¨)

Áù¡¢javaµÄÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(Ïê½âequals·½·¨)
/**
 * Ïê½âequals·½·¨. 
 */
class Equals
{
 private int i;
 public void setI(int i)
 {
  this.i = i;
 }
 public Equals()
 {
  i = 1;
 }
 public Equals(int i)
 {
  this.i = i;
 }
}
class ChangeEquals
{
 private int i;
 public void setI(int i)
 {
  this.i = i;
 }
 public ChangeEquals()
 {
  i = 1;
 }
 public ChangeEquals(int i)
 {
  this.i = i;
 }
 //¸²¸Ç¸¸ÀàµÄequals·½·¨,±È½ÏÁ½¸ö¶ÔÏóµÄ³ÉÔ±±äÁ¿iµÄÖµ
 //Èç¹ûÏàµÈ·µ»Øtrue,²»µÈ·µ»Øfalse.
 public boolean equals(Object obj)
 {
  ChangeEquals ce = null;;
  if(obj instanceof ChangeEquals)
  {
   ce = (ChangeEquals)obj;
   if(this.i == ce.i)
    return true;
   else
    return false;
  }
  return false;
 }
}
public class EqualsTest {
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  /*µ÷ÓÃÎÒÃÇ´´½¨µÄÀàµÄĬÈÏequals·½·¨*/
  System.out.println("µ÷ÓÃÎÒÃÇ´´½¨µÄÀàµÄĬÈÏequals·½·¨");
  Equals e1 = new Equals();//²ÉÓÃĬÈϹ¹Ôì»ú
  Equals e2 = new Equals();
  System.out.println(e2.equals(e1));//false;
  Equals e3 = new Equals(20);//²ÉÓôø²ÎÊýµÄ¹¹Ôì»ú
  Equals e4 = new Equals(20);
  System.out.println(e3.equals(e4));//false
  //ͨ¹ýÒÔÉÏʵÀýÖ¤Ã÷,EqualsÀàµÄ³ÉÔ±±äÁ¿i²¢²»ÊÇequals·½·¨ÅжϵÄÒÀ¾Ý.Ô­ÒòÈçÏÂ:
  /*
  ÎÒÃÇÏÈÀ´¿´¿´java.lang.ObjectÕâ¸öÀàÖеÄequals·½·¨.
  public boolean equals(Object obj)
  {
    return (this == obj);
  }//~~~³ö×ÔjavaµÄlang°ü
  Ob


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

ѧϰJavaµÄ30¸öÄ¿±ê

  1.ÄãÐèÒª¾«Í¨ÃæÏò¶ÔÏó·ÖÎöÓëÉè¼Æ(OOA/OOD)¡¢É漰ģʽ(GOF£¬J2EEDP)ÒÔ¼°×ÛºÏģʽ¡£ÄãÓ¦¸ÃÊ®·ÖÁ˽âUML£¬ÓÈÆäÊÇclass£¬object£¬interactionÒÔ¼°statediagrams¡£
¡¡¡¡2.ÄãÐèҪѧϰJAVAÓïÑԵĻù´¡ÖªÊ¶ÒÔ¼°ËüµÄºËÐÄÀà¿â(collections£¬serialization£¬streams£¬networking£¬ multithreading£¬reflection£¬event£ ......

ÓÃJAVAдÈëºÍ¶ÁÈ¡MYSQLµÄͼƬµÄʵÀý

Ö÷ÒªµÄ³ÌÐò£º
package greeds.jdbc.sample;
import greeds.jdbc.util.JDBCUtil;
import java.io.*;
import java.sql.*;
public class MySQLBlobSample {
 public static void main(String[] args) throws Exception {
  // дÈëÊý¾Ý¿â
  /*
   *
   * Connection ......

Java×Ö·û´®Óë×Ö·û¼¯µÄ»ù±¾¸ÅÄî


±¾×÷Æ·²ÉÓÃ֪ʶ¹²ÏíÊðÃû-·ÇÉÌÒµÐÔʹÓÃ-Ïàͬ·½Ê½¹²Ïí 2.5 Öйú´ó½Ðí¿ÉЭÒé½øÐÐÐí¿É¡£
Java StringÊÇJava APIÖÐ×î³£ÓõÄÀ࣬±¾Îĺʹó¼Ò̸̸StringÀàµÄÄÚ²¿Ô­Àí£¬Í¬Ê±ÃèÊöISO-8859-1×Ö·û¼¯ÔÚ×Ö·û´®´¦ÀíÖеĶÀÌØÓô¦¡£ 
Java×Ö·û´®µÄÄÚ²¿±àÂë
StringÀàÄÚ²¿¹ÜÀí×ÅÒ»¸öcharÀàÐ͵ÄÊý×飬Java APIÊÇÕâÑùÃèÊöchar»ù±¾ÀàÐ ......

java ×ÖÌåÉèÖÃ

Ò»¸öJava×ÖÌåÉèÖóÌÐò£¬°üÀ¨´óС£¬ÑÕÉ«£¬¼Ó´Ö£¬Ï»®Ïߣ¬¶ÔÆ룬бÌåµÄÉèÖ㬺ÜÈ«!!! ÊÕ²Ø
Swing¶ÔJTextPaneÖÐ×ÖÌåÑÕÉ«µÄÉèÖÃ
ת×Ô£ºhttp://www.blogjava.net/Swing/archive/2007/12/26/128965.html
 
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.a ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ