freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

博客專用08java常用類簡(jiǎn)介-免費(fèi)閱讀

  

【正文】 public long longValue()。 public int intValue()。 構(gòu)造方法: public StringTokenizer(String str) 說(shuō)明:為字符串 str構(gòu)造一個(gè)分析器,使用默認(rèn)的分隔符集合 public StringTokenizer(String str, String delim) 說(shuō)明:為字符串 str構(gòu)造一個(gè)分析器,字符串參數(shù) delim中的所有字符都作為分隔符 類的介紹 /StringTokenizer 構(gòu)造方法: public StringTokenizer(String str, String delim, boolean returnTokens) 說(shuō)明:為字符串 str構(gòu)造一個(gè)分析器,字符串參數(shù) delim中的所有字符都作為分隔符; 如果 returnTokens為真,則把分隔符也作為子串返回; 如果 returnTokens為假,只返回被分隔符隔開(kāi)的子串。 (digit)。,39。 i++){ o = elementAt(i)。 } public void addFloat(float f){ addElement(new Float(f))。 刪除對(duì)象中的所有元素 boolean removeElement(Object o)。 類的介紹 /Vector 這最后一個(gè)構(gòu)造方法有兩個(gè)形式參數(shù): capacity表示剛創(chuàng)建時(shí)Vector序列能包含的元素個(gè)數(shù) ,increment表示如果需要向 Vector序列中追加元素 ,那么一次追加多少個(gè) . 下面的語(yǔ)句利用第四個(gè)構(gòu)造函數(shù)創(chuàng)建了一個(gè)向量序列: Vector MyVector = new Vector( 100, 50 )。 String s1 = (8)。 //插入一個(gè)整型數(shù) (())。 (())。 類的介紹 /StringBuffer StringBuffer /append, replace, reverse /*public StringBuffer append(… )。 //共有 11個(gè) append方法 StringBuffer insert(… )。 Sa2 = new String[3]。 } //RandomFrame class結(jié)束 public class MathTest2{ public static void main(String[] s){ RandomFrame rf = new RandomFrame()。 (this)。 } })。 add(pane = new Panel())。 } } 類的介紹 /Object 重寫(xiě)了 toString()方法 繼承了 equals()等方法 (a1) is true (a2) is false (a3) is true A is for ObjectTest class a1 is a instance of class A 類的介紹 /Math Math類里給出了數(shù)學(xué)計(jì)算所需要的函數(shù),包括: 這些都是靜態(tài) (static)的方法,用 ()直接調(diào)用 另外它還提供了兩個(gè)常數(shù) e和 π , 絕對(duì)值 abs(a) 這里 a可以是 int,long,float和 double 三角函數(shù) sin(a)、 cos(a)、 tan(a)等 乘方 pow(a,b) a的 b次方 自然對(duì)數(shù) log(a) 以 e為底的對(duì)數(shù) 開(kāi)方 sqrt(a) 求 a的平方根 隨機(jī)數(shù) random() [, ) 不小于 public class MathTest{ public static void main(String[] s){ (sin(π/4) is + ())。 } } public class ObjectTest { public static void main(String[] s){ A a1 = new A()。 ((a3) is + (a3))。 import .*。 setCenter(ss, dm)。 (new Font(Tahoma, , 16))。 } } 轉(zhuǎn)下頁(yè) 類的介紹 /Math(2**) random()方法的演示程序 接上頁(yè) private Button btn。 String ss = new String(―創(chuàng)建了一個(gè)字符串 ” )。 返回一個(gè)空串 ,長(zhǎng)度為 16個(gè)字節(jié) StringBuffer(int length)。 //反轉(zhuǎn)字符串 StringBuffer replace(int start,int end,String s)。 (())。 //刪除字母 A (8, ?a‘)。//+16 } } 字符串長(zhǎng) 17 Buffer 容量 33 StringBuffer /* public String substring(int start)。 public Vector(Collection c)。 返回 index處的元素 類的介紹 /Vector int indexOf(Object o)。 用 o置換 idx處的元素 類的介紹 /Vector import .*。 (Number of vector elements is +length+ and they are:)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1