lines.each { String line -> println line } Copy. There is also the eachLine method, which allows doing the above without keeping an intermediate variable:.
確定! 回上一頁