package com.stulsoft.pjava.basics.string;/**
 * @author Yuriy Stul
 **/public class SublistTest {
}

@@ -34,16 +34,18 @@
 .string;
+%0A%0A
 /**%0A * @
@@ -66,16 +66,17 @@
 tul%0A **/
+%0A
 public c
@@ -87,17 +87,470 @@
  Sub
-listTest %7B
+stringTest %7B%0A    private static void test(String str, int maxLength)%7B%0A        if (str.length() %3E maxLength) %7B%0A            str = str.substring(0, 2);%0A        %7D%0A        System.out.println(%22in test %22 + str);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        String str;%0A        str = %22012%22;%0A        test(str, 2);%0A        System.out.println(%22after test %22 + str);%0A%0A        str=%220%22;%0A        test(str, 2);%0A        System.out.println(%22after test %22 + str);%0A    %7D
 %0A%7D%0A

test substring