Javaѧϰ±Ê¼Ç£¨1£© ¶ÔÏó³õʼ»¯Ë³Ðò
ÔÚJavaÖУ¬µ±Ò»¸ö¶ÔÏó±»´´½¨Ê±£¬³ÉÔ±±äÁ¿µÄ³õʼ»¯¼°¹¹Ôì·½·¨µÄµ÷ÓÃ×ñÑÒÔÏÂ˳Ðò£º
1. ½«·ÖÅ䏸¶ÔÏóµÄ´æ´¢¿Õ¼ä³õʼ»¯³É¶þ½øÖƵÄÁã¡£
2. µ÷ÓÃËùÓлùÀàµÄ¹¹Ôì·½·¨¡£Õâ¸ö²½Öè»á²»¶ÏµØ·´¸´µÝ¹éÏÂÈ¥£¬Ê×ÏÈÊǹ¹ÔìÕâÖÖ²ã´Î½á¹¹µÄ¸ù£¬È»ºóÊÇÏÂÒ»²ã×ÓÀ࣬µÈµÈ£¬Ö±µ½×îµ×²ãµÄ×ÓÀà¡£
3. °´ÕÕÉùÃ÷µÄ˳Ðòµ÷ÓóÉÔ±µÄ³õʼ»¯·½·¨¡£
4. µ÷ÓÃ×ÓÀàµÄ¹¹Ôì·½·¨Ö÷Ìå¡£
ÏÂÃæ¾ÙÀý˵Ã÷¡£
class Glyph {
Glyph(){
System.out.println("Glyph() before draw()");
draw();
System.out.println("Glyph() after draw()");
}
void draw(){
System.out.println("Glyph.draw()");
}
}
class RoundGlyph extends Glyph {
private int radius = 1;
RoundGlyph(int r){
radius = r;
System.out.println("RoundGlyph.RoundGlyph(), radius = " + radius);
}
void draw(){
System.out.println("RoundGlyph.draw(), radius = " + radius);
}
public static void main(String[] args) {
new RoundGlyph(5);
}
}
ÔËÐнá¹û£º
Glyph() before draw()
RoundGlyph.draw(), radius = 0
Glyph() after draw()
RoundGlyph.RoundGlyph(), radius = 5
¿ÉÒÔ¿´³ö£¬ÔÚÊä³ö½á¹ûµÄµÚ¶þÐÐÖУ¬ÓÉÓÚ²½Öè1µÄÔµ¹Ê£¬radiusµÄֵΪ0.
Ïà¹ØÎĵµ£º
xmlÖмüÃûΪ Ó¢ÎÄ£¬¼üֵΪÖÐÎÄ£¬¶ÁÈ¡½âÎö£¬È¡ÖµÊµÏÖ·Òë
import java.beans.XMLDecoder;
import java.beans.XMLEncoder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList; ......
³ýÁ˹ØÏµÐÍÊý¾Ý¿âÍ⣬»¹ÓÐkey-valueÐÍÊý¾Ý¿â¿ÉÒÔÑ¡Ôñ£¬ÔÚ´óÐ͵IJéѯϵͳÖУ¬key-valueÐÍÊý¾Ý¿â¿ÉÒÔ³öÉ«µÄÍê³ÉijЩÈÎÎñ¡£
OracleµÄBerkeley DB¾ÍÊÇÒ»ÖÖkey-valueÐÍÊý¾Ý¿â£¬±¾ÎļòÒª½éÉÜÔÚjavaÖÐʹÓÃBerkeley DB¡£
PartKey.java:
import java.io.Serializable;
public class PartKey implements Serializable
{
priva ......
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.URIException;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.meth ......
´Ó½ñÌ쿪ʼ, ÎÒÒª½«°ÑThinking in JavaµÄÿ¸öÀý×Ó¶¼ÇýøµçÄÔÀï, Ö»ÓÐÕâÑùÎÒµÄjava»ù´¡²Å»áÓÐÖʵÄÌá¸ß.
¼ÇµÃÒÔǰÓÐÈË˵¹ý, ×µÄ·½·¨ÍùÍù¾ÍÊǽݾ¶,¹Ø¼üÔÚÓÚ¼á³Ö.
¼¼ÊõÒ²ÊÇÕâÑù.
½ñÌìÏÈ´Ó×Ô¼º½Ï¸ÐȤµÄType InformationÄÇÒ»ÕÂÇÃÆð.
ÇÃÁËÊ®¼¸¸öÎļþµÄ´úÂë, ¶ÔClass ÀàµÄʹÓÿÉνÊì͸ÁË. Ïà±ÈÒÔǰ, ¹â¿´Êé²»Á·Ï°, ÏÖÔÚµÄÓ¡Ï ......
Õâ¸öÊǼÓͼƬˮӡµÄ!
package com.pic;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.awt.image.*;
import org.w3c.dom.*;
import com.sun.image.codec.jpeg.*;
import javax.imageio.*;
public class ImgBean_i{
public void ImgBean_i(){
}
public void ImgYin(S ......