Skip to content

Instantly share code, notes, and snippets.

@HoweChen
Created November 7, 2019 06:51
Show Gist options
  • Save HoweChen/a96e120480c05eac4c5663c3b97f1744 to your computer and use it in GitHub Desktop.
Save HoweChen/a96e120480c05eac4c5663c3b97f1744 to your computer and use it in GitHub Desktop.
[Queue to List]#Java
List<?> list = new ArrayList<>( myQueue );

? can be be the class you want to transfer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment