
write a program using string it should replace 'c'char to integer number as 1 in whole source

Hi Friend,
Try this:
class ReplaceCharacter
{
public static void main(String[] args)
{
String str="Welcome";
String st=str.replace('c','1');
System.out.println(st);
}
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.