javaѧϰ¼
ѧϰÁ˼¸ÖÜ£¬ÍæµÃºÜ¿ªÐÄ¡£
ѧϰjavaµÄµÚÒ»¼þʾÍÊÇ×öÒ»¸ö³ÌÐòÉú³ÉHuffman±àÂë¡£
ÔÚÕâÀïÎÒѧ»áÁËLinkedListµÄʹÓã¬Ëü¿ÉÒÔ±£´æÈκÎÀàÐ͵ĶÔÏó¡£
ÈçÏÂÊÇÎҵıàÂë½á¹¹Ìå
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package HuffmanTree;
import java.io.Serializable;
/**
*
* @author sys
*/
public class HuffmanPoint implements Serializable
{
public char Letter = ' ';
public int Number = 0;
public int father = -1, lchild = -1, rchild = -1;
public StringBuffer HuffmanCode= new StringBuffer();
public void print()
{
System.out.println(Letter + " ¹þ¸¥Âü±àÂëÊÇ£º "+ HuffmanCode );
}
}
ÔÙÏÂÃæÊÇÉú³ÉHuffman±àÂëµÄÀà
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package HuffmanTree;
import java.util.*;
/**
*
* @author SKUSR
*/
public class HuffmanLink
{
public LinkedList Link(LinkedList HuffmanArray) //Éú³É¹þ¸¥ÂüÊ÷
{
try
{
int size = HuffmanArray.size();
int linksize = 2*size - 1;
for(int i=size; i<linksize; i++)//Éú³É¹þ¸¥ÂüÊ÷
{
int addr[] = Select(HuffmanArray,i-1);
HuffmanPoint Huffmanlchild = (HuffmanPoint)HuffmanArray.get(addr[0]);
HuffmanPoint Huffmanrchild = (HuffmanPoint)HuffmanArray.get(addr[1]);
Huffmanlch
Ïà¹ØÎĵµ£º
½ñÌìѧϰÁËapplet²¼¾ÖÎÊÌ⣺
°´Å¥¡¢±êÇ©ÊÇÔõÑù¼ÓÈëµ½applet³ÌÐò(ÈÝÆ÷)µ±ÖÐÈ¥µÄÄØ£¿
ÐèÒªÓõ½²¼¾ÖÈÝÆ÷¹ÜÀíÆ÷(LayoutManager)£ºËüÓÃÓÚÐÖúÈÝÆ÷È·¶¨¼ÓÈëµÄ×é¼þ(°´Å¥µÈ)Ó¦¸Ã·ÅÖõÄλÖÃ
awtÌṩÁË4Öг£ÓõIJ¼¾ÖÈÝÆ÷¹ÜÀíÆ÷
>>FlowLayout
>>BorderLayout
>>GridLayout
>>CardLayout
appletĬÈÏÊ ......
×î½ü×öspider£¬javaµÄÕýÔò±í´ïʽ½âÎö³öÿ¸öÍøÒ³µÄ³¬Á´½Ó£¬¸Ð¾õÕýÔòÕæµÄÉñͨ¹ã´ó£¡
´ó¸Å˵һÏ£¬ÎÒµÄͨ³£Ó÷¨¡£
ÕâÒ»²»Ö»ÊǽâÎö³ö <a href=""> Õⲿ·Ö
String regex = "(<a href=\")([\\S]+)(\")";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(sb); //sbÊÇÒ»¸öhtml ´ú ......
////////////////////////////////////////////////½ÚµãÀà TreeNode.java //////////////////////////
package com.tree;
class TreeNode {//°ü·ÃÎÊȨÏÞ
long data ;
long x,y;
String adrr;
Tre ......
UUID(Universally Unique Identifier)È«¾ÖΨһ±êʶ·û,ÊÇÖ¸ÔÚһ̨»úÆ÷ÉÏÉú³ÉµÄÊý×Ö£¬Ëü±£Ö¤¶ÔÔÚͬһʱ¿ÕÖеÄËùÓлúÆ÷¶¼ÊÇΨһµÄ¡£°´ÕÕ¿ª·ÅÈí¼þ»ù½ð»á(OSF)Öƶ¨µÄ±ê×¼¼ÆË㣬Óõ½ÁËÒÔÌ«Íø¿¨µØÖ·¡¢ÄÉÃ뼶ʱ¼ä¡¢Ð¾Æ¬IDÂëºÍÐí¶à¿ÉÄܵÄÊý×Ö¡£ÓÉÒÔϼ¸²¿·ÖµÄ×éºÏ£ºµ±Ç°ÈÕÆÚºÍʱ¼ä(UUIDµÄµÚÒ»¸ö²¿·ÖÓëʱ¼äÓйأ¬Èç¹ûÄãÔÚÉú ......
ʲôÊÇJava Plug-in
¡¡¡¡Java-plug-in,Ò²¾ÍÊÇÎÒÃÇͨ³£ËµµÄAppletÓëJWS(Java Web Start),´Ó¼¼ÊõÉÏÀ´½²,ËûÃǶ¼Á¥ÊôÓëRIA(Rich Internet Application)Java Plug-inµÄ´æÔÚ£¬Ê¹µÃÔÚä¯ÀÀÆ÷ÖÐÔËÐÐJava³ÌÐò³ÉΪ¿ÉÄÜ£¬Java Plug-inÔÚä¯ÀÀÆ÷ÖÐ×÷Ϊ²å¼þ´æÔÚ£¬ËüÀ©Õ¹ÁËä¯ÀÀÆ÷µÄ¹¦ÄÜ£¬Ò²¾ÍÊÇ ......