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
Can you explain polymorphism?
State what is encapsulation and friend function?
What is coupling in oops?
What is object and example?
Why is oop better than procedural?
Get me a number puzzle game-program
What is difference between inheritance and polymorphism?
What is constructor overloading in oop?
What is polymorphism in oop example?
Whats is abstraction in oops?
What is overloading and its types?
What is destructor give example?
What is meant by oops concept?
What is the full form of oops?
Write a c++ program to display pass and fail for three student using static member function