import java.util.ArrayList; public class test { private numbers number; //example public test() { number = new numbers(); List<Integer> list = number.getList(); //hurray ! } }