這是一個(gè)反向的范圍,反向迭代?
boolean isReverse()
沒(méi)有
是否范圍反轉(zhuǎn)的布爾值true或false。
下面是一個(gè)使用這個(gè)方法的例子 -
class Example { static void main(String[] args) { // Example of an Integer using def def rint = 1..10; println(rint.isReverse()); } }
當(dāng)我們運(yùn)行上面的程序,我們將得到以下結(jié)果 -
false
更多建議: