Java Number Range Create range(int start, int end)

Here you can find the source of range(int start, int end)

Description

range

License

Apache License

Declaration

public static int[] range(int start, int end) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] range(int start, int end) {
        int[] range = new int[end - start];
        for (int i = start; i < end; i++)
            range[i - start] = i;/*from   ww  w. j av  a  2s  .c  o m*/
        return range;
    }
}

Related

  1. range(int min, int max)
  2. range(int min, int max)
  3. range(int min, int max, int value)
  4. range(int n)
  5. range(int start, int end)
  6. range(int start, int end)
  7. range(int start, int end)
  8. range(int start, int end)
  9. range(int start, int end, int step)