daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest May 16th, 2018 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Main {
  2.     static void swap(Integer a, Integer b) {
  3.         Integer t = a;
  4.         a = b;
  5.         b = t;
  6.     }
  7.     public static void main(String[] args) {
  8.         Integer a = 1;
  9.         Integer b = 0;
  10.         swap(a,b);
  11.         System.out.println(a+" "+b);
  12.  
  13.     }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top