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
Which language is not a true object oriented programming language?
What is the diamond problem in inheritance?
What is pointer in oop?
Prepare me a program for the animation of train
What is encapsulation and abstraction? How are they implemented in C++?
what are the realtime excercises in C++?
What is difference between abstraction and encapsulation?
What are objects in oop?
Is abstract thinking intelligence?
Can you explain polymorphism?
What is property in oops?
What is difference between polymorphism and inheritance?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What are the components of marker interface?
What is abstraction encapsulation?