KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > collections > impl > IntRange


1 package persistence.antlr.collections.impl;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 public class IntRange {
10     int begin, end;
11
12
13     public IntRange(int begin, int end) {
14         this.begin = begin;
15         this.end = end;
16     }
17
18     public String JavaDoc toString() {
19         return begin + ".." + end;
20     }
21 }
22
Popular Tags