package ru.job4j.array;

import java.util.Arrays;

/**
 * Class Testing.
 * @author Yury Vlasov
 * @since 18.04.2017
 * @version 1.0
*/

public class Testing {
	publuc boolean contains(String origin, String sub) {
		char[] chOrigin = origin.toCharArray();
		char[] chSub = sub.toCharArray();

		boolean result;

		for (int i = 0; i < chOrigin.length; i++) {
			for (int j = 0; j < chSub.length; j++) {
				if (array[i].equals(array[j])) {
					result = true;
					j = j+1;
					break;
				}
			}
		}
	}
}
@@ -303,16 +303,58 @@
  result;
+%0A%09%09int m = 0; // %D1%81%D1%87%D0%B8%D1%82%D0%B0%D0%B5%D1%82 %D1%87%D0%B8%D1%81%D0%BB%D0%BE %D1%81%D0%BE%D0%B2%D0%BF%D0%B0%D0%B4%D0%B5%D0%BD%D0%B8%D0%B9.
 %0A%0A%09%09for 
@@ -511,35 +511,200 @@
 j+1;
-%0A%09%09%09%09%09break;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D
+ // %D0%BD%D1%83%D0%B6%D0%BD%D0%BE %D1%87%D1%82%D0%BE%D0%B1 j %D0%BD%D0%B0%D1%87%D0%B8%D0%BD%D0%B0%D0%BB%D0%B0 %D1%81 j+1, %D0%B0 %D0%BD%D0%B5 %D1%81 0. %D0%9A%D0%B0%D0%BA %D1%8D%D1%82%D0%BE %D1%80%D0%B5%D0%B0%D0%BB%D0%B8%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D1%8C.%0A%09%09%09%09%09m++;%0A%09%09%09%09%09break;%0A%09%09%09%09%7D else %7B%0A%09%09%09%09m = 0;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09if (m = chSub.length) %7B%0A%09%09%09contains = true;%0A%09%09%7D%0A%09return contains;
 %0A%09%7D%0A

task testing