package ru.ematveev.stringsub;

public class StringSub{

		public boolean contains(String origin, String sub){

			char[] o = origin.toCharArray();
			char[] s = origin.toCharArray();
			boolean count = false;

				for(int i = 0; i < o.length; i++){
					if(s[0] == o[i]){
						for(int j = 1; j < s.length; j++){
							if(s[j] != o[i+j]){
							break;
						}
							else {
							count = true;
					}
				}
			}

		}
			return count;
	}
} 




 
@@ -155,22 +155,19 @@
 r%5B%5D s = 
-origin
+sub
 .toCharA
@@ -323,9 +323,9 @@
 %5Bj%5D 
-!
+=
 = o%5B
@@ -342,13 +342,20 @@
 %09%09%09%09
-break
+count = true
 ;%0A%09%09
@@ -381,35 +381,36 @@
 %0A%09%09%09%09%09%09%09count = 
-tru
+fals
 e;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A

change StringSub.java