public static void main(String[] args) {
int a = 8;
int b = 5;
System.out.println("Before: a = " + a + ", b = " + b);
swap(a, b);
System.out.println("After: a = " + a + ", b = " + b);
}
Both After and Before, a = 8, b = 5
Can anyone help me to create *swap* method to solve my problem?
Thanks! :)
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---