
You are given two strings S1 and S2,Delete from S2 all those characters which occur in s1 also and create a clean S2 with the relevant characters deleted..write a pgm for this..pls send as soon as possible
Thank you..

public class Practice11 {
public static void main(String args[]){
String s1 = "def";
String s2 = "abcdefgh";
s2 = s2.replace(s1, "");
System.out.println(s2);
}
}
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.