¼¸ÖÖ³£¼ûµÄÊý¾Ý½á¹¹µÄJAVAʵÏÖ
ITree
package utility.structure.def;
/**
*
* @author odie.tang
*
* @version 1.0 10/30/09
*/
public interface ITree<E>{
E getData();
E remove();
void setData(E e);
int getDepth();
int getLevel();
ITree<E> getRoot();
ITree<E> getParent();
ITree<E> getFirstChild();
ITree<E> addFirtChild(E e);
ITree<E> getLastChild();
ITree<E> addLastChild(E e);
ITree<E> getNode(E e);
boolean isLeaf();
boolean isRoot();
boolean remove(E e);
}
IBinaryTree
package utility.structure.def;
public interface IBinaryTree<E> extends ITree<E>{
boolean hasLeftChild();
boolean isLeftChild();
IBinaryTree<E> getLeftChild();
IBinaryTree<E> addLeftChild(E e);
boolean hasRightChild();
boolean isRightChild();
IBinaryTree<E> getRightChild();
IBinaryTree<E> addRightChild(E e);
}
BinaryTree
package utility.structure;
import java.io.Serializable;
import java.util.ConcurrentModificationException;
import utility.structure.def.IBinaryTree;
import utility.structure.def.ITree;
/**
*
* @author odie.tang
*
* @since 1.0 11/01/09
*/
public class BinaryTree<E> implements IBinaryTree<E>,Serializable{
private static final long serialVersionUID = 1565285530988892541L;
private E data;
private BinaryTree<E> parent = null;
private BinaryTree<E> leftChild = null;
private BinaryTree<E> rightChild = null;
private int level;
private enum Child{left,right}
public BinaryTree(E root) {
this.data = root;
this.level = 1;
}
public BinaryTree(E root, E leftChild){
this.data = root;
this.level = 1;
new BinaryTree<E>(this,Child.left,leftChild);
}
public BinaryTree(E root, E leftChild,E rightChild){
this.data = root;
this.level = 1;
new BinaryTree<E>(this,Child.left,leftChild);
new BinaryTre
Ïà¹ØÎĵµ£º
µÚÒ»ÖÖDES¼ÓÃÜËã·¨
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
/**
*
* ʹÓÃDES¼ÓÃÜÓë½âÃÜ,¿É¶Ôbyte[],StringÀàÐͽøÐмÓÃÜÓë½âÃÜ ÃÜÎÄ¿ÉʹÓà ......
JavaÖеļòµ¥¹¤³§Ä£Ê½
¾ÙÁ½¸öÀý×ÓÒÔ¿ìËÙÃ÷°×JavaÖеļòµ¥¹¤³§Ä£Ê½£º
Å®æ´ÞÒÍÁÔìÈË
»°Ëµ£º“ÌìµØ¿ª±Ù£¬Î´ÓÐÈËÃñ£¬Å®æ´ÞÒÍÁΪÈË¡£”Å®æ´ÐèÒªÓÃÍÁÔì³öÒ»¸ö¸öµÄÈË£¬µ«ÔÚÅ®æ´Ôì³öÈË֮ǰ£¬È˵ĸÅÄîÖ»´æÔÚÓÚŮ洵Ä˼ÏëÀïÃæ¡£
Å®æ´ÔìÈË£¬Õâ¾ÍÊǼòµ¥¹¤³§Ä£Ê½µÄÓ¦Óá£
¡¡¡¡Ê×ÏÈ£ ......
/**
* ´´½¨Ò»¸öеÄÎļþ
* @param relativePath Ïà¶Ô·¾¶
* @param fileName ÎļþÃû
* @return
* @throws IOException
*/
public File cre ......
ÎÒµÄjavaѧϰÁËÒ»ÄêÓÐÓ࣬Æð³õÊǺúÂÒѧ£¬ºóÀ´¾õµÃjava·Ç³£ÓÐÒâ˼£¬²¢ÇÒÏëÔÚÕâ·½ÃæÉîÈëѧϰ£¬ÏÖÔÚ²ÅÊÇJavaÑ§Ï°ÕæÕýµÄ¿ªÊ¼¡£ÎÒÕýÔÚÔĶÁcorejavaºÍ±à³Ì˼Ï룬ѧÍêÕâÈý±¾ºóÏë¸ãj2eeµÄ¿ª·¢¡£±¾È˶ÔÊý¾Ý¿âÒ²¸ÐÐËȤ£¬ÏÖÔÚÈÈÖÔÓÚSQL£¬µ«ÊÇÎÒÏàÐÅ×Ô¼º×îÖÕ»áÃé×¼ORECAL(ºÜ´ó³Ì¶È³öÓÚºÃÆæÐÄ£©£¬ÆäʵÏÖÔÚ¾õµÃJava DB ......
Javaѧϰ·¾¶£¨Ò»£©¹¤¾ßƪ
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJDKÊÇSun¹«Ë¾·¢²¼µÄJDK£¬³ýÁËSunÖ®Í⣬»¹Óкܶ๠......