JavaDoc£¬ÔÚ Java µÄ×¢ÊÍÉÏ×öÎÄÕÂ
JavaDoc£¬ÔÚ Java µÄ×¢ÊÍÉÏ×öÎÄÕÂ
¡¡¡¡¶ÔÓÚJava×¢ÊÍÎÒÃÇÖ÷ÒªÁ˽âÁ½ÖÖ£º
¡¡¡¡
¡¡¡¡// ×¢ÊÍÒ»ÐÐ
¡¡¡¡/* ...... */ ×¢ÊÍÈô¸ÉÐÐ
¡¡¡¡µ«»¹ÓеÚÈýÖÖ£¬Îĵµ×¢ÊÍ£º
¡¡¡¡/** ...... */ ×¢ÊÍÈô¸ÉÐУ¬²¢Ð´Èë javadoc Îĵµ
¡¡¡¡Í¨³£ÕâÖÖ×¢Ê͵ĶàÐÐд·¨ÈçÏ£º
¡¡¡¡/**
¡¡¡¡ * .........
¡¡¡¡ * .........
¡¡¡¡ */
¡¡¡¡ºÜ¶àÈ˶àºöÊÓÁËÕâµÚÈýÖÖ×¢ÊÍ£¬ÄÇôÕâµÚÈýÖÖ×¢ÊÍÓÐʲôÓã¿javadoc ÓÖÊÇʲô¶«Î÷£¿ÏÂÃæÎÒÃǾÍ̸̸¡£
¡¡¡¡Ò». Java ÎĵµºÍ Javadoc
¡¡¡¡Java ³ÌÐòÔ±¶¼Ó¦¸ÃÖªµÀʹÓà JDK ¿ª·¢£¬×îºÃµÄ°ïÖúÐÅÏ¢¾ÍÀ´×Ô SUN ·¢²¼µÄ Java Îĵµ¡£Ëü·Ö°ü¡¢·ÖÀàÏêϸµÄÌṩÁ˸÷·½·¨¡¢ÊôÐԵİïÖúÐÅÏ¢£¬¾ßÓÐÏêϸµÄÀàÊ÷ÐÅÏ¢¡¢Ë÷ÒýÐÅÏ¢µÈ£¬²¢ÌṩÁËÐí¶àÏà¹ØÀàÖ®¼äµÄ¹Øϵ£¬Èç¼Ì³Ð¡¢ÊµÏÖ½Ó¿Ú¡¢ÒýÓõȡ£
¡¡¡¡Java ÎĵµÈ«ÊÇÓÉһЩ html Îļþ×éÖ¯ÆðÀ´µÄ£¬ÔÚ SUM µÄÕ¾µãÉÏ¿ÉÒÔÏÂÔØËüÃǵÄѹËõ°ü¡£µ«ÊÇÄã¿Ï¶¨Ïë²»µ½£¬ÕâЩÎĵµÎÒÃÇ¿ÉÒÔ×Ô¼ºÉú³É¡£——¾Í´Ë´òס£¬ÔÙµõÒ»´Îθ¿Ú¡£
¡¡¡¡°²×°ÁË JDK Ö®ºó£¬°²×°Ä¿Â¼ÏÂÓÐÒ»¸ö src.jar Îļþ»òÕß src.zip Îļþ£¬ËüÃǶ¼ÊÇÒÔ ZIP ¸ñʽѹËõµÄ£¬¿ÉÒÔʹÓà WinZip ½âѹ¡£½âѹ֮ºó£¬ÎÒÃǾͿÉÒÔ¿´µ½·ÖĿ¼·ÅµÄÈ«ÊÇ .java Îļþ¡£ÊÇÁË£¬ÕâЩ¾ÍÊÇ Java ÔËÐÐÀàµÄÔ´ÂëÁË£¬·Ç³£ÍêÕû£¬Á¬×¢ÊͶ¼Ð´µÃÒ»Çå¶þ³þ……²»¹ý£¬Ôõô¿´ÕâЩעÊͶ¼ÓеãËÆÔøÏàʶµÄ¸Ð¾õ£¿
¡¡¡¡Õâ¾Í²»Ææ¹ÖÁË£¬ÎÒÃǵÄÃÔµ×Ò²¿ìÒª½Ò¿ªÁË¡£Èç¹ûÄã×Ðϸ¶Ô±ÈһϠ.java Ô´ÎļþÖеÄÎĵµ×¢ÊÍ (/** ... */) ºÍ Java ÎĵµµÄÄÚÈÝ£¬Äã»á·¢ÏÖËüÃǾÍÊÇÒ»ÑùµÄ¡£Java ÎĵµÖ»ÊÇ»¹ÔÚ¸ñʽºÍÅÅ°æÉÏÏÂÁËЩ¹¦·ò¡£ÔÙ×Ðϸһµã£¬Äã»á·¢ÏÖ .java Ô´ÎļþÖеÄ×¢ÊÍ»¹´øÓÐ HTML ±êʶ£¬Èç £¼B£¾¡¢£¼BR£¾¡¢£¼Code£¾ µÈ£¬ÔÚ Java ÎĵµÖУ¬¸Ã³öÏÖÕâЩ±êʶµÄµØ·½£¬ÒѾ°´±êʶµÄµÄ¶¨Òå½øÐÐÁËÅÅ°æ¡£
¡¡¡¡ÖÕÓÚÕæÏñ´ó°×ÁË£¬ÔÀ´ Java ÎĵµÊÇÀ´×ÔÕâЩעÊÍ¡£ÄѹÖÕâЩעÊͽÐ×öÎĵµ×¢ÊÍÄØ£¡²»¹ý£¬ÊÇʲô¹¤¾ß°ÑÕâЩעÊͱä³ÉÎĵµµÄÄØ£¿
¡¡¡¡ÊǸÃÇë³ö javadoc µÄʱºòÁË¡£ÔÚ JDK µÄ bin Ŀ¼ÏÂÄã¿ÉÒÔÕÒµ½ javadoc£¬Èç¹ûÊÇ Windows Ï嵀 JDK£¬ËüµÄÎļþÃûΪ javadoc.exe¡£Ê¹Óà javdoc ±àÒë .java Ô´Îļþʱ£¬Ëü»á¶Á³ö .java Ô´ÎļþÖеÄÎĵµ×¢ÊÍ£¬²¢°´ÕÕÒ»¶¨µÄ¹æÔòÓë Java Ô´³ÌÐòÒ»Æð½øÐбàÒ룬Éú³ÉÎĵµ¡£
¡¡¡¡½éÉÜ javadoc µÄ±àÒëÃüÁî֮ǰ£¬»¹ÊÇÏÈÁ˽âÒ»ÏÂÎĵµ×¢Ê͵ĸñʽ°É¡£²»¹ýΪÁËÄܹ»±àÒëÏÂÃæÌáµ½µÄÈô¸ÉÀý×Ó£¬ÕâÀïÏȽéÉÜÒ»Ìõ javadoc ÃüÁ
¡¡¡¡javadoc -d Îĵµ´æ·ÅĿ¼ -author -version Ô´ÎļþÃû.ja
Ïà¹ØÎĵµ£º
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Terris extends JFrame implements Runnable, KeyListener {
private short isPlaying=0,xOffSet = 2, yOffSet = 0, blockType = (short) Math.round(Math.random() * 6), blockRotation = 0, blockColor = (short) Math.round(Math. ......
java for foreach whileÑ»·µÄ±È½Ï
¹Ø¼ü×Ö: java
ÔÚjavaÖо¿¾¹ÊÇÒ»°ãµÄforÑ»·£¬»¹ÊÇforµÄÔöÇ¿ÐÍforeach£¬»òÊÇwhileµÄÖ´ÐÐЧÂʱȽϿìÄØ,ÎÒÓÃÁËÒ»¸ö¼òµ¥µÄ³ÌÐòÀ´·ÖÎö3ÖÖÑ»·
public static void main(String[] args) {
List<Integer> map = new ArrayList<Integer>();
for (int i = 0; i < ......
1¡¢ ¼Ì³ÐºÍʵÏÖÇø±ð
HashtableÊÇ»ùÓڳ¾ɵÄDictionaryÀàµÄ£¬HashMapÊÇJava 1.2Òý½øµÄMap½Ó¿ÚµÄÒ»¸öʵÏÖ¡£
2¡¢ Ḭ̈߳²È«²»Í¬
HashTableµÄ·½·¨ÊÇͬ²½µÄ£¬HashMapÊÇδͬ²½£¬ËùÒÔÔÚ¶àÏ̳߳¡ºÏÒªÊÖ¶¯Í¬²½HashMap¡£
3¡¢ ¶ÔnullµÄ´¦Àí²»Í¬
HashTable²»ÔÊÐínullÖµ(keyºÍvalue¶¼²»¿ÉÒÔ),HashMapÔÊÐín ......
2007-09-28 12:17×÷Õߣºdoublel³ö´¦£ºÂÛ̳ÕûÀíÔðÈα༣º·½ÖÛ
¡¡¡¡ÔÚJavaÓïÑÔÖУ¬ abstract class ºÍinterface ÊÇÖ§³Ö³éÏóÀඨÒåµÄÁ½ÖÖ»úÖÆ¡£ÕýÊÇÓÉÓÚÕâÁ½ÖÖ»úÖƵĴæÔÚ£¬²Å¸³ÓèÁËJavaÇ¿´óµÄ ÃæÏò¶ÔÏóÄÜÁ¦¡£abstract classºÍinterfaceÖ®¼äÔÚ¶ÔÓÚ³éÏóÀඨÒåµÄÖ§³Ö·½Ãæ¾ßÓкܴóµÄÏàËÆÐÔ£¬ÉõÖÁ¿ÉÒÔÏ໥Ìæ»»£¬Òò´ËºÜ¶à¿ª·¢ÕßÔÚ½ ......