Site Search:

Flash card list 1 -- card 8

Prev   Next

Which of the following String methods don't have the same named StringBuilder methods?
String s = "string";

s.startsWith("s"); s.endsWith("s"); s.contains("s"); s.replace("str", "sdr"); s.trim(); s.toUpperCase(); s.toLowerCase(); s.equalsIgnoreCase(s); 


hese methods are String class only: startWith, endsWith, contains, trim, toUpperCase, toLowerCase, equalsIgnoreCase.

StringBuilder.replace(int,int,String) have the same name but different signature.