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

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

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

    www.baidu.com

    JavaCode--我愛你,芳兒

    JavaStudy--我愛你,芳兒

    Java API introduce

    Java類庫由以下幾個包組成:
    java.lang
    java.io
    java.util
    java.awt
    java.applet
    java.net

    java基礎類庫在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的最大整數
    4.public static double log(doulble d)求d 的自然對數
    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中的隨機數
    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)
    此全為靜態變量..可用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()強制調用虛擬機的垃圾回收功能


    String      class
    分為String 類和StringBuffer類
    String:
    構造函數:
    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:
    構造函數:
    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(<參數類型> <參數名>)
    public StringBuffer insert(int <輸入位置>,<參數類型> <參數名>)



     

    芳兒寶貝.我愛你

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

    導航

    統計

    公告

    芳兒寶貝.我愛你


    黑客基地
    http://www.hackbase.com
    全球最大的黑客門戶網站


     最近在讀的書:

    常用鏈接

    留言簿(1)

    隨筆分類(37)

    JavaCode

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 好男人视频社区精品免费| 久久久WWW免费人成精品| 99热这里有免费国产精品| 亚洲av永久无码精品漫画| 久久高潮一级毛片免费| 亚洲色婷婷一区二区三区| 国产一级在线免费观看| 亚洲JIZZJIZZ妇女| 亚洲成AV人影片在线观看| 日本免费中文字幕在线看| 国产亚洲福利一区二区免费看| 国产人妖ts在线观看免费视频| 羞羞网站在线免费观看| 久久亚洲AV无码西西人体| 全免费a级毛片免费看| 亚洲a一级免费视频| 国产免费不卡视频| 亚洲午夜理论片在线观看| 四虎永久免费地址在线网站| 男女超爽视频免费播放| 亚洲香蕉成人AV网站在线观看| 免费国产成人18在线观看| 亚洲图片激情小说| 国产三级电影免费观看| 成人毛片100免费观看| 久久亚洲中文字幕精品有坂深雪| 国产精品69白浆在线观看免费| 亚洲大尺度无码无码专线一区| 亚洲av区一区二区三| 久艹视频在线免费观看| 亚洲性无码AV中文字幕| 亚洲人成无码www久久久| 久久精品毛片免费观看| 极品色天使在线婷婷天堂亚洲| 亚洲中文字幕无码久久综合网| 国产高清不卡免费在线| 一级毛片大全免费播放下载| 亚洲理论在线观看| 亚洲片国产一区一级在线观看| 免费A级毛片无码视频| 粉色视频免费入口|