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 are the ways in which a constructors can be called?
How do you answer polymorphism?
can we make game by using c
What is this pointer in oop?
What is oops in simple words?
What is meant by multiple inheritance?
What is difference between multiple inheritance and multilevel inheritance?
What is abstraction in oop?
How does polymorphism work?
What is abstraction and encapsulation?
What is the highest level of cohesion?
Why do we use oops?
What are the benefits of interface?
What is polymorphism give a real life example?
What is abstraction example?