class Demo22
{
public static void main(String[] args)
{
int a = 10;
int b = 20;
System.out.println("a"+a+" "+"b"+b);
sum1(a,b);
System.out.println("a"+a+" "+"b"+b);
}
public void sum1(int a,int b){
a = b;
b = a + b;
System.out.println("a"+a+" "+"b"+b);
}