Instantly share code, notes, and snippets.
List<?> list = new ArrayList<>( myQueue );
? can be be the class you want to transfer