Hi i need a basic java program. My input is ___This___is___the___sample___program___
and i want output as This_is_the_sample_program. Underscores are dynamic. There may be 3 or more or less than 3 underscores between the strings. but the output should look like THis_is_the_sample_program
.
Please help me if anybody knows
Thanks in advance.