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
In Java you can initialize a string and then modify it using the replace method The replace method a... View full answer
Get step-by-step solutions from verified subject matter experts
