Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This program swap two numbers and print them */
- class Swap
- {
- void swap(int A,int B)
- {
- int temp=A;
- A=B;
- B=temp;
- System.out.println("A = "+A);
- System.out.print("B = "+B);
- System.out.println("Program over");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement