Which of the following are methods within the String class. 1.subString(); 2.startsWith(); 3.toString(); 4.toUppercase(); 5.toindexOf(); They have given all correct,which cannot be,because they have no arguments except in case of 3 and 4. Thanks! Steven
Hello, The SunJavadocs list methods 1 through 4 as being in the String class (although #1 should actually be substring() ). I'm not sure if # 5 is correct or not, although if Sun doesn't list it I'd think it would be wrong. Pat B.
[This message has been edited by Pat Barrett (edited February 07, 2001).]