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
Can an interface inherit a class?
What is interface? When and where is it used?
What is an interface in oop?
What is polymorphism and example?
How to use CMutex, CSemaphore in VC++ MFC
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is abstraction and encapsulation?
What is debug class?what is trace class? What differences are between them? With examples.
Why is abstraction needed?
What language is oop?
What are main features of oop?
What is the difference between static polymorphism and dynamic polymorphism?
What is class and example?
Why is object oriented programming so hard?
When not to use object oriented programming?