@@ -0,0 +1,738 @@
+package ru.tsibrovskii.lesson1.TestTask;%0A%0Apublic class SubString %7B%0A%09%0A%09public boolean contains(String origin, String sub) %7B%0A%09%09%0A%09%09int len1 = origin.length();%0A%09%09int len2 = sub.length();%0A%09%09boolean rezult = false;%0A%09%09%0A%09%09char%5B%5D originArray = new char%5Blen1%5D;%0A%09%09char%5B%5D subArray = new char%5Blen2%5D;%0A%09%09%0A%09%09for (int i = 0; i %3C len1; i++) %7B%0A%09%09%09originArray%5Bi%5D = origin.charAt(i);%0A%09%09%7D%0A%09%09%0A%09%09for (int i = 0; i %3C len2; i++) %7B%0A%09%09%09subArray%5Bi%5D = sub.charAt(i);%0A%09%09%7D%0A%09%09%09%0A%09%09for (int i = 0; i %3C len1; i++) %7B%0A%09%09%09if (originArray%5Bi%5D == subArray%5B0%5D) %7B%0A%09%09%09%09int k = i + 1;%0A%09%09%09%09for (int j = 1; j %3C len2; j++) %7B%0A%09%09%09%09%09if (originArray%5Bk%5D == subArray%5Bj%5D) %7B%0A%09%09%09%09%09%09if (j == len2 - 1) %7B%0A%09%09%09%09%09%09%09rezult = true;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09k++;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%09%09%09%09%09%09%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return rezult;%0A%09%7D%0A%7D

add finish task