public int findNumberInString(String in){
        int pos = 0;
        int start = -1;
        int stop = -1;
        while(pos < in.length() )
        {
            if(isNumber(in.codePointAt(pos)))
            {
                if(start == -1)
                {
                    start = pos;
                }
            }
            else
            {
                if(start != -1 && stop == -1)
                {
                    stop = pos;
                }
            }
            pos++;
        }
        if(stop == -1)
        {
            stop = in.length();
        }
        return Integer.parseInt(in.substring(start, stop));
    }