JavaSE(三):String類與數組

一、String類 1、成員變量 值:char value[],數組,未提供方法改變長度 hash值:int hash,value不同,hash值也不同 2、length():返回value值的長度 3、indexOf(int ch, int fromIndex):返回在此字符串中第一次出現指定字符處的索引,從指定的索引開始搜索 4、String(char value[], int offset,
相關文章
相關標籤/搜索