KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > util > Range


1 //$Id: Range.java,v 1.1 2004/06/03 16:31:30 steveebersole Exp $
2
package org.hibernate.util;
3
4 public final class Range {
5
6     public static int[] range(int begin, int length) {
7         int[] result = new int[length];
8         for ( int i=0; i<length; i++ ) {
9             result[i]=begin + i;
10         }
11         return result;
12     }
13
14     private Range() {}
15 }
16
17
18
19
20
21
22
23
Popular Tags