@@ -0,0 +1,504 @@
+package ru.job4j.array;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * Class Testing.%0A * @author Yury Vlasov%0A * @since 18.04.2017%0A * @version 1.0%0A*/%0A%0Apublic class Testing %7B%0A%09publuc boolean contains(String origin, String sub) %7B%0A%09%09char%5B%5D chOrigin = origin.toCharArray();%0A%09%09char%5B%5D chSub = sub.toCharArray();%0A%0A%09%09boolean result;%0A%0A%09%09for (int i = 0; i %3C chOrigin.length; i++) %7B%0A%09%09%09for (int j = 0; j %3C chSub.length; j++) %7B%0A%09%09%09%09if (array%5Bi%5D.equals(array%5Bj%5D)) %7B%0A%09%09%09%09%09result = true;%0A%09%09%09%09%09j = j+1;%0A%09%09%09%09%09break;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D

task testing