You are on page 1of 1

import java.util.

*;
import java.io.*;
class Swap
{
public static void main(string args[])
{
Scanner sc= new Scanner(System.in)
a=sc.nextInt();
b=sc.nextInt();
Swap s1=new Swap(a,b);
}
}
class Swap
{
int temp;
int s(int a,int b)
{
a=temp;
a=b;
b=temp;
System.out.println("after swapping a="+a+"b="+b);
}
}

You might also like