Here you can find the source of arrayToList(Object[] hyCycles)
@SuppressWarnings({ "rawtypes", "unchecked" }) public static List arrayToList(Object[] hyCycles)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static List arrayToList(Object[] hyCycles) { List list = new ArrayList(); Collections.addAll(list, hyCycles); return list; }//from w w w . j av a 2s . c om }