Skip to content

Instantly share code, notes, and snippets.

@notyy
Created January 1, 2012 18:28
Show Gist options
  • Save notyy/1547987 to your computer and use it in GitHub Desktop.
Save notyy/1547987 to your computer and use it in GitHub Desktop.
Java covaiant
Object s = "abc";
List<Object> objects = new java.util.ArrayList<String>();
String[] a = new String[] { "abc" };
Object[] b = a;
b[0] = 1;
System.out.println(a[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment