Question: java write function add_dash(s) returnsa new string contaning all characters instring separated with a dash. input like Good should be returned G-o-o-d and if the

java

write function add_dash(s) returnsa new string contaning all characters instring separated with a dash.

input like Good should be returned G-o-o-d

and if the input in zero character or one charater should resturn the word as it is with out dash

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!