Given two strings like x=?hello? and y=?open?, remove any
character from string x which is also used in string y,
thus making the result x=?hll?.
Answer Posted / nisha sharma
class Stringb
{
public static void main(String a[])
{
StringBuffer sb=new StringBuffer("Hello");
StringBuffer sb1=sb.deleteCharAt(1);
StringBuffer sb2=sb1.deleteCharAt(3);
System.out.println(sb2);
}
}
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Why do we use polymorphism?
What is balance factor?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is polymorphism explain?
How do you achieve runtime polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
can we make game by using c
What is oops and its features?
write knight tour problem which is present in datastructure
#include
What is abstraction oop?
Advantage and disadvantage of routing in telecom sector
Why is abstraction used?
Why do we use inheritance?
What is difference between data abstraction and encapsulation?