「Groovy」範囲に低い値を取得するサンプル
書式
Comparable getFrom()
範囲の低い値を返す
使用例
class Arkxample {
static void main(String[] args) {
// def 整数の範囲
def cft = 2..12;
//範囲に指定インデックス
println(cft.getFrom());
}
}
結果
2
Coding Changes the World
書式
Comparable getFrom()
範囲の低い値を返す
使用例
class Arkxample {
static void main(String[] args) {
// def 整数の範囲
def cft = 2..12;
//範囲に指定インデックス
println(cft.getFrom());
}
}
結果
2