Question: Write Java statements that initialize a string message with Hello and then change it to hello. Use the replace method.

Write Java statements that initialize a string message with "Hello" and then change it to

"hello". Use the replace method.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Java you can initialize a string and then modify it using the replace method The replace method a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!