package napadovskiytask;

public class FinalTask{
	
	
	public boolean findSubString(String origin, String sub){
		
        char[] originArray = origin.toCharArray();
        char[] subArray = sub.toCharArray();

        int counter =0;
        int indFind =0;
        boolean findString = false;

        for(int i=0; i<subArray.length; i++){
            char symbol = subArray[i];
            for (int j = indFind; j<originArray.length; j++ ){
                if(symbol == originArray[j]){
                    indFind = ++j;
                    counter ++;
                    break;
                }
                else{
                    counter =0;
                }
            }
        }
        if(counter == subArray.length){
            findString = true;
        }
        return findString;
	}
}
@@ -23,33 +23,278 @@
 k;%0A%0A
-public class FinalTask%7B%0A%09
+/**%0A%09*Class FinalTask %D0%B4%D0%BB%D1%8F %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B8 %D0%B2%D1%85%D0%BE%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D1%8F %D0%BF%D0%BE%D0%B4%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8 %D0%B2 %D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%0A%09*@author napadovskiy%0A%09*@since 17.08.2016%0A%09*@version 1%0A*/%0A%0Apublic class FinalTask%7B%0A%09 /**%0A%09%09*@param origin%0A%09%09*@param sub%0A%09%09*@return findString return true if origin contains sub and false if not%0A%09%09%0A%09*/     %0A
 %0A%09%0A%09

add Javadoc