Top Posters
Since Sunday
g
3
2
J
2
p
2
m
2
h
2
s
2
r
2
d
2
l
2
a
2
s
2
New Topic  
Oughto Oughto
wrote...
Posts: 742
Rep: 1 0
7 years ago
What will be the value of str after the following statements are executed?

StringBuilder str =
   new StringBuilder("We have lived in Chicago, " +
                     "Trenton, and Atlanta.");
str.replace(17, 24, "Tampa");

A) We have lived in Chicago, Tampaon, and Atlanta.
B) We have lived in Chicago, Trenton, and Tampa.
C) We have lived in Chicago, Tampa, and Atlanta.
D) We have lived in Tampa, Trenton, and Atlanta.
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 179 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Oughto Author
wrote...
7 years ago
makes a lot more sense, thanks for the help
wrote...
7 years ago
Good luck tackling the rest
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  817 People Browsing
 127 Signed Up Today
Related Images
  
 623
  
 4422
  
 374
Your Opinion
Which 'study break' activity do you find most distracting?
Votes: 741

Previous poll results: Who's your favorite biologist?