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
What is oops in simple words?
How do you use inheritance in unity?
#include
Can static class have constructor?
Why is object oriented programming so hard?
What is static modifier?
What is abstraction in oop?
What is a class and object?
What is abstract class in oops?
What is polymorphism and its types?
What type of loop is a for loop?
What do you mean by abstraction?
What is difference between inheritance and polymorphism?
What is object in oop?
What is the significance of classes in oop?