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 are tags in java?

938


I am trying to create a new universal user group. Why can't i? : java security

965


What is the content reside in Use case Document?

2088


Can we install jre without jdk?

968


Which type of stream is in java?

926


What is map and flatmap?

1067


Can a method be static and synchronized?

1105


What is dialect in java?

949


What is jdk for netbeans ide?

1101


What is the use of servlet in java?

1002


How do I install jdk?

925


Explain different way of using thread?

1086


What do I need to install netbeans?

1044


What are the advantages of java sockets?

1201


Are there tuples in java?

1003