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 / bijoy kumar baral
Public abstract ClassDemo
{
public static void main(string args[]){
StringBuffer sb1= new stringBuffer("Hello");
StringBuffer sb2= new stringBuffer("open");
stringbuffer a= sb.deletecharacterAt("hello",1);
system.out.println("the value of a:"+a);
stringBuffer x=sb.deletecharacterAt("hllo"3);
system.out.println(x:+"x");
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
write a program to find 2^n+1 ?
What is pointer in oop?
Can we define a class within the interface?
What is inheritance write a program to show use of inheritance?
Why oops is important?
Why do pointers exist?
What is static in oop?
What is polymorphism programming?
what is the drawback of classical methods in oops?
What is the fundamental idea of oop?
Can we have inheritance without polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
What does enum stand for?
What is encapsulation in ict?
What is the importance of oop?