📄 forloopwithlocalvariablestest.groovy
字号:
/** * Tests iterating with local variables */class ForLoopWithLocalVariablesTest extends GroovyTestCase { void testForLoop() { def x = null for ( i in 0..9 ) { x = i } assert x == 9 }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -