构造器Java中,一切皆对象,String也是。如果是对象的话,那第一个想到的函数自然而然就是构造器啦!语法如下:String str = new String("I am a string.
確定! 回上一頁