Question: java - Let's write a program to do the following: - Get a string from the user - We'll allow the string to include spaces

 java - Let's write a program to do the following: -

java

- Let's write a program to do the following: - Get a string from the user - We'll allow the string to include spaces - Select a random character from the string - We'll print out the location of the character and what the character is - Print the string with all instances of that character replaced by underscores

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!