Java中的String、Object、包裝類的用法

1.String類 1.1 String類的兩種實例化方式 a. 直接賦值java String str = "hello world!"; System.out.println(str); b. 傳統方法(經過構造方法實例化類) String類中的其中一種構造方法:public String(String str);web //傳統方法 String str = new String("hell
相關文章
相關標籤/搜索