この範囲の上限値を取得します。
Comparable getTo()
None
範囲の上限値。
以下は、このメソッドの使用例です-
class Example { static void main(String[] args) { //Example of an Integer using def def rint = 1..10; println(rint.getTo()); } }
上記のプログラムを実行すると、次の結果が得られます-
10