摘要:
列表的基本操作: import java.io.File class Example { static void main(String[] args){ def list1 = [1,2]; def list2 = [1,2,3,4]; def list3 = [1,5,2,9,0]; // 向列 阅读全文
posted @ 2025-07-07 15:46
山村放羊娃
阅读(13)
评论(0)
推荐(0)
摘要:
groovy 字符串 class Example { static void main(String[] args){ String a = "hello,groovy"; String b = "hello,java"; String c = "hello,shell" + ",hello,pyt 阅读全文
posted @ 2025-07-07 15:03
山村放羊娃
阅读(11)
评论(0)
推荐(0)
摘要:
import java.io.File class Example { static void main(String[] args){ File file = new File("./abc.txt"); println "The file ${file.absolutePath} has ${f 阅读全文
posted @ 2025-07-07 14:03
山村放羊娃
阅读(7)
评论(0)
推荐(0)
摘要:
class Example { static int x = 100; public int getX(){ this.x = 200; return x; } public int setX(int pX){ x = pX; } static void main(String[] args) { 阅读全文
posted @ 2025-07-07 10:26
山村放羊娃
阅读(13)
评论(0)
推荐(0)
浙公网安备 33010602011771号