Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

corporate.hse@tcs.

com

j.ahamed@tcs.com, for any queries or cllarification

04467423000 - service desk number.

48150- Occuaptional Health & saftey

Authcode

eTMS

Timesheet

Proxy track

https://www.datasciencecentral.com/profiles/blogs/data-science-for-managers-
mindmap

BPGROOVE73

Changepwd@DDMMYYYY

1542519

Public Class Swap{


Static void swap_num(integer num_1, integer num_2){

Integer a =num_1; //10


Integer b=num_2; //20
System.debug(‘Number 1= ‘ + a);
System.debug(‘Number 2= ‘ + b);
a= a+b; //30
b=a-b; //30-10=20
a=a-b // 30-20=10
System.debug(‘Number 1= ‘ + a);
System.debug(‘Number 2= ‘ + b);
}//Function end here
}//Class end here
//For the anonymous Window
Swap obj_swap = new Swap();
obj_swap.swap_num(10,20);

You might also like