Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can you explain polymorphism?

1041


State what is encapsulation and friend function?

1190


What is coupling in oops?

1065


What is object and example?

1112


Why is oop better than procedural?

1021


Get me a number puzzle game-program

2180


What is difference between inheritance and polymorphism?

975


What is constructor overloading in oop?

1075


What is polymorphism in oop example?

959


Whats is abstraction in oops?

1022


What is overloading and its types?

1078


What is destructor give example?

1009


What is meant by oops concept?

989


What is the full form of oops?

1120


Write a c++ program to display pass and fail for three student using static member function

3324