Here you can find the source of sequence(final int from, final int count)
public static Collection<Integer> sequence(final int from, final int count)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.Collection; public class Main { public static Collection<Integer> sequence(final int from, final int count) { final Integer[] arr = new Integer[count]; for (int i = 0; i < count; i++) { arr[i] = Integer.valueOf(from + i); }//w ww . j av a 2 s .com return Arrays.asList(arr); } }