GROOVY 字符串操作

groovy 字符串 

 

class Example {

   static void main(String[] args){
      String a = "hello,groovy";
      String b = "hello,java";
      String c = "hello,shell" + ",hello,python";

      println a[2];
      println a[-1];
      println c[0..10];
   }
}

 

posted @ 2025-07-07 15:03  山村放羊娃  阅读(11)  评论(0)    收藏  举报