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...

write a code in jsp to swap two numbers?

Answer Posted / p.a.v.k.prasad

Swapping the two nubers without using third variable.

int a,b;

b=a+b;
b=a-b;
a=a-b;

try it.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if I do not provide the string array as the argument to the method?

913


How do I run a project in netbeans?

940


What's the difference between local, global and universal groups? : java security

925


Do I need jdk or jre?

849


How can I protect myself? : java security

1007


Is openjdk the same as jdk?

918


What is a controller in java?

1034


How do I run a project in eclipse?

948


What is predicate in lambda expression?

823


What happens when the parent process of a child process exits before the child ?

943


What is dao in java?

973


What is java api?

892


What is hql in java?

885


Explain the encapsulation principle.

919


What is cookie in java?

881