Skip to content

Instantly share code, notes, and snippets.

@Josebuendia
Created February 4, 2020 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Josebuendia/b7aafb675e60f2c689adf1513c335bae to your computer and use it in GitHub Desktop.
Save Josebuendia/b7aafb675e60f2c689adf1513c335bae to your computer and use it in GitHub Desktop.
ArrayList <String> coloursArrayList2 = new ArrayList<String>(3);
List<String> destList = coloursArrayList2<String>(Arrays.asList(new String[coloursArrayList.size()]));
Collections.copy(coloursArrayList2, coloursArrayList);
System.out.println(coloursArrayList2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment