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] && s.length != 1){
								for(int j = 1; j < s.length; j++){
									if(s[j] != o[i+j]){
										break;
									}
									else {
										count = true;
					}
				}
			}

		}
			return count;
	}
} 





@@ -267,30 +267,11 @@
 o%5Bi%5D
- && s.length != 1
 )%7B%0A
-%09%09
 %09%09%09%09
@@ -314,18 +314,16 @@
 %0A%09%09%09%09%09%09%09
-%09%09
 if(s%5Bj%5D 
@@ -334,19 +334,16 @@
 %5Bi+j%5D)%7B%0A
-%09%09%09
 %09%09%09%09%09%09%09b
@@ -354,23 +354,18 @@
 ;%0A%09%09%09%09%09%09
-%09%09%09%7D%0A%09%09
+%7D%0A
 %09%09%09%09%09%09%09e
@@ -370,19 +370,16 @@
 %09else %7B%0A
-%09%09%09
 %09%09%09%09%09%09%09c
@@ -437,12 +437,13 @@
 ;%0A%09%7D%0A%7D %0A%0A%0A%0A%0A
+ 

change StringSub.java