<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    www.baidu.com

    JavaCode--我愛(ài)你,芳兒

    JavaStudy--我愛(ài)你,芳兒

    Java API introduce

    Java類庫(kù)由以下幾個(gè)包組成:
    java.lang
    java.io
    java.util
    java.awt
    java.applet
    java.net

    java基礎(chǔ)類庫(kù)在java.lang包中:
    Object  class
    method:
    1.protected Object clone()
    2.public boolean equals(Object obj)
    3.public final class getClass()
    4.protected void finalize()
    5.public String toString()
    6.public final void notify()

    Math       class
    method:
    1.public static double abs(double d)
    2.public static double exp(double d)求e的d次冪
    3.public static double floor(double d)求不大于d的最大整數(shù)
    4.public static double log(doulble d)求d 的自然對(duì)數(shù)
    5.public static double max(double d1,double d2)
    6.public static double min(double d1,double d2)
    7.public static double pow(double d1,double d2)d1的d2次方
    8.public static double random()獲取0~1中的隨機(jī)數(shù)
    9.public static double rint(double d)求d的4舍5入
    10.pulblic static double sqrt(double d)
    11.public static double sin(double d)
    12.public static double cos(double d)
    13.public static double tan(double d)
    此全為靜態(tài)變量..可用Math.method()表示


    System    class
    屬性:
    public static InputStream in;
    pulbic static PrintStream out;
    public static PrintStream err;
    method:
    public static long currentTimeMillis()
    public static void exit(int status)
    public static void gc()強(qiáng)制調(diào)用虛擬機(jī)的垃圾回收功能


    String      class
    分為String 類和StringBuffer類
    String:
    構(gòu)造函數(shù):
    public String();
    public Stirng(StringValue);
    public String(StringBuffer buffer);
    public String(char value[]);
    method:
    public int length();
    public boolean startsWith(String prefix)
    public boolean endsWith(Stirng suffix)
    查找字符串中指定的字符
    public int indexOf(char ch)
    public int indexOf(char ch,int fromIndex)
    public int lastIndexOf(char ch)
    public int lastInderOf(char ch,int fromIndex)
    查找字符串中指定的子串
    public int indexOf(String str)
    public int indexOf(String str,int fromIndex)
    public int lastIndexOf(String str)
    public int lastInderOf(String str,int fromIndex)
    比較兩字符串:
    public int compareTo(String str)
    public boolean equals(Object obj)
    public boolean equalsIgnoreCase(String str)
    連接兩字符串
    public String concat(String str)
    求字符串中的字符和子串
    public char chaAt(int index)
    public String substirng(int startIndex,int endIndex)
    public String substring(int startIndex)

    StringBuffer:
    構(gòu)造函數(shù):
    public StringBuffer()
    public StringBuffer(int length)
    public StringBuffer(String str)
    method:
    public int length()
    public int capacity()
    public void setLength(int newLength)
    public charAt(int index)
    public void setChartAt(int index,char ch)
    public StringBuffer append(<參數(shù)類型> <參數(shù)名>)
    public StringBuffer insert(int <輸入位置>,<參數(shù)類型> <參數(shù)名>)



     

    芳兒寶貝.我愛(ài)你

    posted on 2007-12-08 11:30 wǒ愛(ài)伱--咾婆 閱讀(1271) 評(píng)論(0)  編輯  收藏 所屬分類: JavaBaseFiles

    導(dǎo)航

    統(tǒng)計(jì)

    公告

    芳兒寶貝.我愛(ài)你


    黑客基地
    http://www.hackbase.com
    全球最大的黑客門(mén)戶網(wǎng)站


     最近在讀的書(shū):

    常用鏈接

    留言簿(1)

    隨筆分類(37)

    JavaCode

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲精品无码国产| 我要看免费的毛片| 国产成人综合亚洲AV第一页| 亚洲人成电影网站色| 91在线品视觉盛宴免费| 亚洲乱码一区av春药高潮| 亚洲w码欧洲s码免费| 综合自拍亚洲综合图不卡区| 国产成人精品免费视| 亚洲AV无码乱码在线观看代蜜桃| 97热久久免费频精品99| 国产亚洲精品成人AA片| 女人18毛片水最多免费观看| 国产精品亚洲lv粉色| 亚洲熟妇少妇任你躁在线观看无码 | 无码专区—VA亚洲V天堂| 免费看又黄又无码的网站| 亚洲视频国产精品| 日韩毛片免费无码无毒视频观看| 久久乐国产综合亚洲精品| 免费一级做a爰片久久毛片潮喷| 一级做性色a爰片久久毛片免费| 亚洲精品制服丝袜四区| 中文字幕亚洲免费无线观看日本 | 亚洲6080yy久久无码产自国产| 免费a级毛片在线观看| 中文在线免费视频| 亚洲色图在线观看| 女人18毛片特级一级免费视频| 免费播放国产性色生活片| 国产成人精品日本亚洲网站| 91精品国产免费久久久久久青草| 亚洲欧美日韩国产精品一区| 亚洲免费无码在线| 在线观看免费av网站| 亚洲爆乳大丰满无码专区| 国产性爱在线观看亚洲黄色一级片| 97在线视频免费播放| 国产精品国产亚洲区艳妇糸列短篇 | 女人张开腿给人桶免费视频| 曰批全过程免费视频在线观看无码|