Skip to content

Instantly share code, notes, and snippets.

@SergioGeeK7
Created June 9, 2014 21:46
Show Gist options
  • Save SergioGeeK7/d17a911c8edbf3e68d49 to your computer and use it in GitHub Desktop.
Save SergioGeeK7/d17a911c8edbf3e68d49 to your computer and use it in GitHub Desktop.
public void main (String args[]){
int z [] = {1,2,3,4};
ArrayList b = new ArrayList();
List <Integer> a= new ArrayList<>();
ArrayList <String> r = new ArrayList<>();
print(new int []{1,2,3});
System.out.println( new int[]{1,2,3} );
}
private static void print(int[] i) {
System.out.println(Arrays.toString(i));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment