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 / nisha sharma
class Stringb
{
public static void main(String a[])
{
StringBuffer sb=new StringBuffer("Hello");
StringBuffer sb1=sb.deleteCharAt(1);
StringBuffer sb2=sb1.deleteCharAt(3);
System.out.println(sb2);
}
}
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Can an interface inherit a class?
What are classes oop?
What is class in oop with example?
Is html an oop?
What are the 4 pillars of oop?
What language is oop?
#include
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 is difference between data abstraction and encapsulation?
which feature are not hold visual basic of oop?
What are the types of abstraction?
What is multilevel inheritance explain with example?
What is variable example?
What is inheritance in oop?
Can you explain polymorphism?