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
Get step-by-step solutions from verified subject matter experts
