# | Line 312 | Line 312 | public class CopyOnWriteArrayList<E> | |
---|---|---|
312 | * The following code can be used to dump the list into a newly | |
313 | * allocated array of <tt>String</tt>: | |
314 | * | |
315 | < | * <pre> |
316 | < | * String[] y = x.toArray(new String[0]);</pre> |
315 | > | * <pre> {@code String[] y = x.toArray(new String[0]);}</pre> |
316 | * | |
317 | * Note that <tt>toArray(new Object[0])</tt> is identical in function to | |
318 | * <tt>toArray()</tt>. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |