@@ -0,0 +1,480 @@
+package ru.ematveev.stringsub;%0A%0Apublic class StringSub%7B%0A%0A%09%09public boolean contains(String origin, String sub)%7B%0A%0A%09%09%09char%5B%5D o = origin.toCharArray();%0A%09%09%09char%5B%5D s = origin.toCharArray();%0A%09%09%09boolean count = false;%0A%0A%09%09%09%09for(int i = 0; i %3C o.length; i++)%7B%0A%09%09%09%09%09if(s%5B0%5D == o%5Bi%5D && s.length != 1)%7B%0A%09%09%09%09%09%09%09%09for(int j = 1; j %3C s.length; j++)%7B%0A%09%09%09%09%09%09%09%09%09if(s%5Bj%5D != o%5Bi+j%5D)%7B%0A%09%09%09%09%09%09%09%09%09%09break;%0A%09%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%09%09else %7B%0A%09%09%09%09%09%09%09%09%09%09count = true;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%0A%09%09%09return count;%0A%09%7D%0A%7D %0A%0A%0A%0A%0A

add StringSub.java