{"id":267723,"date":"2015-11-08T17:38:03","date_gmt":"2015-11-08T14:38:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267723"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267723","title":{"rendered":"\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f toCamelCase() \u0434\u043b\u044f Java"},"content":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0432 camelCase.<br \/>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438\u0441\u044c \u0443\u0437\u043a\u043e\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 (\u043f\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f\u043c Java, SOME_JAVA_NAMING_CONVENTION_CONST), \u043b\u0438\u0431\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0430\u0437\u044b, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438.<br \/>  \u041c\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e, \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u041e\u043b\u044c\u0448\u0430\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043f\u043e\u0434\u043e\u0431\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u043c\u0443 \u0443\u0432\u0430\u0436\u0430\u044e\u0449\u0435\u043c\u0443 \u0441\u0435\u0431\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0438\u0441\u0442\u0443, \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0432\u043b\u0451\u043a\u0441\u044f. \u041e\u0447\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0442 \u043a\u043e\u0434\u0430, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043b\u044e\u0431\u044b\u0435 \u043c\u043d\u043e\u044e \u0441\u043a\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 camelCase \u0438\u043b\u0438 CamelCase.<br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u2014 \u043d\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438 (\u0434\u043b\u044f \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 JNC), \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e (\u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043a\u043e\u0434\u0430 \u2014 \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c\u0443, \u0443\u0441\u043b\u043e\u0432\u0438\u044e).<\/p>\n<p>  \u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u043e\u043a\u0443, \u0438 \u0444\u043b\u0430\u0433, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0443\u043a\u0432\u044b (\u043d\u0435\u0434\u043e-camelCase).<br \/>  \u0414\u0435\u043b\u0430\u0435\u0442 \u043e\u043d\u0430 \u0432\u0441\u0451 \u044d\u0442\u043e \u0437\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0445\u043e\u0434. \u041a\u043e\u0434 \u043f\u0440\u0438\u0441\u044b\u043f\u0430\u043d \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 (\u043a\u043e\u043c\u0443 \u0438 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u044d\u0442\u0430 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430).<br \/>  \u041f\u0440\u0438 \u0436\u0430\u043b\u0435\u043d\u0438\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u043e \u043e\u0442\u043a\u0443\u0441\u0438\u0442\u044c.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 javascript \u0438 C#.<\/p>\n<pre><code class=\"java\">\t\/** \t * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0432 \u0432\u0438\u0434\u0435 camelCase (\u0438\u043b\u0438 CamelCase) \u0441\u0442\u0440\u043e\u043a\u0443. \t * \t * @param string               \u0418\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \t * @param firstWordToLowerCase \u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043b\u0438 \u0438\u0441\u043a\u043e\u043c\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 (lowercase). \t *\/ \tpublic static String toCamelCase(String string, boolean firstWordToLowerCase) { \t\tchar currentChar, previousChar = '\\u0000'; \/\/ \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u043e\u0445\u043e\u0434\u0430 \t\tStringBuilder result = new StringBuilder(); \/\/ \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u0431\u0438\u043b\u0434\u0435\u0440\u0430  \t\tboolean firstLetterArrived = !firstWordToLowerCase; \/\/ \u0424\u043b\u0430\u0433, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432 lowercase \t\tboolean nextLetterInUpperCase = true; \/\/ \u0424\u043b\u0430\u0433, \u043f\u0440\u0438\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0432 UPPERCASE  \t\t\/\/ \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \t\tfor (int i = 0; i &lt; string.length(); i++) { \t\t\tcurrentChar = string.charAt(i);  \t\t\t\/* \u0415\u0441\u043b\u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0435 \u0446\u0438\u0444\u0440\u043e\u0431\u0443\u043a\u0432\u0430 - \t\t\t\t\u043f\u0440\u0438\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0411\u043e\u043b\u044c\u0448\u0438\u043c (\u043d\u0430\u0447\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e) \u0438 \u0438\u0434\u0435\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e. \t\t\t   \u0415\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u044d\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u0438\u043b\u0438 \u0446\u0438\u0444\u0440\u0430, \u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0431\u0443\u043a\u0432\u0430 - \t\t\t    \u043f\u0440\u0438\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0411\u043e\u043b\u044c\u0448\u0438\u043c (\u043d\u0430\u0447\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e). \t\t\t*\/ \t\t\tif (!Character.isLetterOrDigit(currentChar) || ( \t\t\t\t\t((Character.isLetter(previousChar) && Character.isLowerCase(previousChar)) || Character.isDigit(previousChar)) && \t\t\t\t\tCharacter.isLetter(currentChar) && Character.isUpperCase(currentChar)) \t\t\t\t\t) { \t\t\t\tnextLetterInUpperCase = true; \t\t\t\tif (!Character.isLetterOrDigit(currentChar)) { \t\t\t\t\tpreviousChar = currentChar; \t\t\t\t\tcontinue; \t\t\t\t} \t\t\t}  \t\t\t\/\/ \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0411\u043e\u043b\u044c\u0448\u0443\u044e \u0431\u0443\u043a\u0432\u0443, \u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430. \t\t\tif (nextLetterInUpperCase && firstLetterArrived) { \t\t\t\tresult.append(Character.toUpperCase(currentChar)); \t\t\t} \t\t\telse { \t\t\t\tresult.append(Character.toLowerCase(currentChar)); \t\t\t}  \t\t\t\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u043b\u0430\u0433\u0438. \t\t\tfirstLetterArrived = true; \t\t\tnextLetterInUpperCase = false; \t\t\tpreviousChar = currentChar; \t\t}  \t\t\/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \t\treturn result.toString(); \t} <\/code><\/pre>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0443 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>Source string: &#8216;normalCamelCaseName&#8217;<br \/>  Result string: &#8216;normalCamelCaseName&#8217;<br \/>  Result string: &#8216;NormalCamelCaseName&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;NotCamelCaseName&#8217;<br \/>  Result string: &#8216;notCamelCaseName&#8217;<br \/>  Result string: &#8216;NotCamelCaseName&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;CONSTANT_TO_CAMEL_CASE&#8217;<br \/>  Result string: &#8216;constantToCamelCase&#8217;<br \/>  Result string: &#8216;ConstantToCamelCase&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;Text To Camel Case&#8217;<br \/>  Result string: &#8216;textToCamelCase&#8217;<br \/>  Result string: &#8216;TextToCamelCase&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;Text to camel case&#8217;<br \/>  Result string: &#8216;textToCamelCase&#8217;<br \/>  Result string: &#8216;TextToCamelCase&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;\u041e\u0442\u0416\u0438\u041c\u0430\u0415\u043c\u0421\u044f \u041d\u0430 \u0428\u0438\u0424\u0444\u0422\u0435, \u0414\u0440\u0423\u0437\u042f\u0444\u0424\u043a\u0418!:)&#8217;<br \/>  Result string: &#8216;\u043e\u0442\u0416\u0438\u041c\u0430\u0415\u043c\u0421\u044f\u041d\u0430\u0428\u0438\u0424\u0444\u0422\u0435\u0414\u0440\u0423\u0437\u042f\u0444\u0424\u043a\u0418&#8217;<br \/>  Result string: &#8216;\u041e\u0442\u0416\u0438\u041c\u0430\u0415\u043c\u0421\u044f\u041d\u0430\u0428\u0438\u0424\u0444\u0422\u0435\u0414\u0440\u0423\u0437\u042f\u0444\u0424\u043a\u0418&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;-(*&#038;*&#038;%&#038;%$^&#038;^*()\u0417\u043d\u0430\u043a\u043e\u0432*&#038;^%*(&#038;$\u043f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f\u2026 \u0438.\u043d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445&#8212;&#8212;&#8212;&#8212;\u0437\u043d\u0430\u043a\u043e\u0432^ (\u041c\u043e\u0436\u0435\u0442*90\u0411\u044b\u0442\u044c&#038;(*?*?: \u0421\u041a\u041e\u041b\u042c\u041a\u041e*?%?:%\u0443\u0433\u043e\u0434\u043d\u043e!&#8217;<br \/>  Result string: &#8216;\u0437\u043d\u0430\u043a\u043e\u0432\u041f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f\u0418\u041d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445\u0417\u043d\u0430\u043a\u043e\u0432\u041c\u043e\u0436\u0435\u044290\u0411\u044b\u0442\u044c\u0421\u043a\u043e\u043b\u044c\u043a\u043e\u0423\u0433\u043e\u0434\u043d\u043e&#8217;<br \/>  Result string: &#8216;\u0417\u043d\u0430\u043a\u043e\u0432\u041f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f\u0418\u041d\u0435\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445\u0417\u043d\u0430\u043a\u043e\u0432\u041c\u043e\u0436\u0435\u044290\u0411\u044b\u0442\u044c\u0421\u043a\u043e\u043b\u044c\u043a\u043e\u0423\u0433\u043e\u0434\u043d\u043e&#8217; (firstWordToLowerCase = false)<br \/>  ===========================<br \/>  Source string: &#8216;\u0418, \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a, \u0440\u0443\u0441\u0441\u043a\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e \u0437\u043d\u0430\u043a\u0430\u043c\u0438 \u043f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f (\u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f!).&#8217;<br \/>  Result string: &#8216;\u0438\u041d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a\u0420\u0443\u0441\u0441\u043a\u0430\u044f\u0421\u0442\u0440\u043e\u043a\u0430\u0421\u043e\u0417\u043d\u0430\u043a\u0430\u043c\u0438\u041f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f&#8217;<br \/>  Result string: &#8216;\u0418\u041d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a\u0420\u0443\u0441\u0441\u043a\u0430\u044f\u0421\u0442\u0440\u043e\u043a\u0430\u0421\u043e\u0417\u043d\u0430\u043a\u0430\u043c\u0438\u041f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f&#8217; (firstWordToLowerCase = false)  <\/p><\/blockquote>\n<p>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/270425\/\"> http:\/\/habrahabr.ru\/post\/270425\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0432 camelCase.<br \/>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438\u0441\u044c \u0443\u0437\u043a\u043e\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 (\u043f\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f\u043c Java, SOME_JAVA_NAMING_CONVENTION_CONST), \u043b\u0438\u0431\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0430\u0437\u044b, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438.<br \/>  \u041c\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e, \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u041e\u043b\u044c\u0448\u0430\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043f\u043e\u0434\u043e\u0431\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u043c\u0443 \u0443\u0432\u0430\u0436\u0430\u044e\u0449\u0435\u043c\u0443 \u0441\u0435\u0431\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0438\u0441\u0442\u0443, \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0432\u043b\u0451\u043a\u0441\u044f. \u041e\u0447\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043e\u0442 \u043a\u043e\u0434\u0430, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043b\u044e\u0431\u044b\u0435 \u043c\u043d\u043e\u044e \u0441\u043a\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 camelCase \u0438\u043b\u0438 CamelCase.<br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u2014 \u043d\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438 (\u0434\u043b\u044f \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 JNC), \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e (\u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043a\u043e\u0434\u0430 \u2014 \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c\u0443, \u0443\u0441\u043b\u043e\u0432\u0438\u044e).<\/p>\n<p>  \u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-267723","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267723"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267723\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}