Created
August 6, 2013 15:49
-
-
Save yshavit/6165754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class Arrs { | |
public static void main(String[] args) { | |
int[] is = {1, 2}; | |
printit(is); | |
printit(args); | |
} | |
private static void printit(Object... os) { | |
System.out.println("Object[]: " + Arrays.toString(os)); | |
} | |
private static void printit(int... is) { | |
System.out.println("int[]: " + Arrays.toString(is)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment