Replace Spaces of String with a Character in Java

In this tutorial we will learn writing java program to replace blank spaces of a String with a given character. The program will accept one string and one character from the user. Program 1 : Replace Space with Given Input using replace() method Java Output Explanation: Here, the user input string ‘quescol Website’, and a … Read more

Replace string space with given character in Python

Replace string space with given character

In this tutorial we are going to learn writing python program to replace the string space with given character. Problem Statement For a given string we have to replace all the spaces with the character given by the user as an input. For example: Our logic to replace a string with given character Algorithm to … Read more