leonardosc

xd

Jun 2nd, 2015
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. public static <E> ArrayList<E> toArayList(E ... contents)
  2. {
  3.     ArrayList<E> list = new ArrayList<>();
  4.    
  5.     for (E content : contents)
  6.     {
  7.         list.add(content);
  8.     }
  9.    
  10.     return list;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment