String 各種類型

一:String 空參 構造方法 String s1 = new String(); System.out.println(s1); 二 :byte數組構造方法 出現的是亂碼 byte[] bs = {1,2,3}; String s2 = new String(bs); System.out.println(s2); 三 : char類型數 char[] chars = {‘a’,‘b’,‘c’
相關文章
相關標籤/搜索