{"id":2633,"date":"2026-09-23T09:00:00","date_gmt":"2026-09-23T09:00:00","guid":{"rendered":"https:\/\/otus.ru\/journal\/?p=2633"},"modified":"2026-09-25T15:35:08","modified_gmt":"2026-09-25T15:35:08","slug":"vse-o-peremennyh-v-dzhave-tip-char","status":"publish","type":"post","link":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/","title":{"rendered":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b"},"content":{"rendered":"<p><strong>char<\/strong> \u0432 Java &#8212; \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0438\u043f \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 16 \u0431\u0438\u0442 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u043e\u0434\u043d\u0443 <strong>\u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UTF-16<\/strong>, \u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043e\u0442 0 \u0434\u043e 65535. \u0414\u043b\u044f \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u044b \u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b \u043e\u0434\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c, \u043d\u043e \u0434\u043b\u044f \u044d\u043c\u043e\u0434\u0437\u0438 \u0438 \u0447\u0430\u0441\u0442\u0438 \u0440\u0435\u0434\u043a\u0438\u0445 \u0438\u0435\u0440\u043e\u0433\u043b\u0438\u0444\u043e\u0432 \u0441\u0438\u043c\u0432\u043e\u043b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 char.<\/p>\n<div class=\"oj-toc\" style=\"background:#f6f6f6;border-radius:8px;padding:14px 20px;margin:20px 0\">\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/strong><\/p>\n<ol>\n<li><a href=\"#s1\">\u041c\u0435\u0441\u0442\u043e char \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432<\/a><\/li>\n<li><a href=\"#s2\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440: \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b<\/a><\/li>\n<li><a href=\"#s3\">\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char: \u043f\u043e\u0447\u0435\u043c\u0443 &#8216;a&#8217; + &#8216;b&#8217; = 195<\/a><\/li>\n<li><a href=\"#s4\">\u0421\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b: \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d char &#8212; \u043d\u0435 \u0441\u0438\u043c\u0432\u043e\u043b<\/a><\/li>\n<li><a href=\"#s5\">\u041a\u043b\u0430\u0441\u0441 Character: \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b<\/a><\/li>\n<li><a href=\"#s6\">\u041a\u043e\u0433\u0434\u0430 \u0431\u0440\u0430\u0442\u044c char, \u0430 \u043a\u043e\u0433\u0434\u0430 String \u0438\u043b\u0438 int<\/a><\/li>\n<li><a href=\"#s7\">\u0412\u044b\u0432\u043e\u0434\u044b<\/a><\/li>\n<li><a href=\"#s8\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/a><\/li>\n<li><a href=\"#s9\">FAQ<\/a><\/li>\n<\/ol>\n<\/div>\n<p>\u041d\u0438\u0436\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0443 \u0441 char, \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character<\/code>. \u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0433\u043d\u0430\u043d\u044b \u043d\u0430 OpenJDK 25.0.4 (Java 25 LTS) 23.09.2026.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f, \u0442\u0440\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0422\u0435\u0440\u043c\u0438\u043d<\/th>\n<th>\u0427\u0442\u043e \u044d\u0442\u043e<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u00ab\ud83d\ude00\u00bb<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430 (code point)<\/td>\n<td>\u043d\u043e\u043c\u0435\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 Unicode, \u0434\u043e U+10FFFF<\/td>\n<td>U+1F600<\/td>\n<\/tr>\n<tr>\n<td>\u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430 UTF-16 (code unit)<\/td>\n<td>16-\u0431\u0438\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 char<\/td>\n<td>D83D \u0438 DE00<\/td>\n<\/tr>\n<tr>\n<td>\u0413\u0440\u0430\u0444\u0435\u043c\u0430<\/td>\n<td>\u0442\u043e, \u0447\u0442\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432\u0438\u0434\u0438\u0442 \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b<\/td>\n<td>\u043e\u0434\u0438\u043d \u0441\u043c\u0430\u0439\u043b\u0438\u043a, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"s1\">\u041c\u0435\u0441\u0442\u043e char \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432<\/h2>\n<p>\u0412 Java \u0432\u043e\u0441\u0435\u043c\u044c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432. char &#8212; \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445: \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0422\u0438\u043f<\/th>\n<th>\u0420\u0430\u0437\u043c\u0435\u0440<\/th>\n<th>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d<\/th>\n<th>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>byte<\/td>\n<td>8 \u0431\u0438\u0442<\/td>\n<td>-128..127<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>short<\/td>\n<td>16 \u0431\u0438\u0442<\/td>\n<td>-32768..32767<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>char<\/td>\n<td>16 \u0431\u0438\u0442<\/td>\n<td>0..65535 (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\u0000'<\/code>..<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\uffff'<\/code>)<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\u0000'<\/code><\/td>\n<\/tr>\n<tr>\n<td>int<\/td>\n<td>32 \u0431\u0438\u0442\u0430<\/td>\n<td>\u043e\u043a\u043e\u043b\u043e \u00b12,1 \u043c\u043b\u0440\u0434<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>long<\/td>\n<td>64 \u0431\u0438\u0442\u0430<\/td>\n<td>\u043e\u043a\u043e\u043b\u043e \u00b19,2\u00b710^18<\/td>\n<td>0L<\/td>\n<\/tr>\n<tr>\n<td>float<\/td>\n<td>32 \u0431\u0438\u0442\u0430<\/td>\n<td>IEEE 754<\/td>\n<td>0.0f<\/td>\n<\/tr>\n<tr>\n<td>double<\/td>\n<td>64 \u0431\u0438\u0442\u0430<\/td>\n<td>IEEE 754<\/td>\n<td>0.0<\/td>\n<\/tr>\n<tr>\n<td>boolean<\/td>\n<td>\u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439<\/td>\n<td>true \/ false<\/td>\n<td>false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 boolean \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f JVM \u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442: \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u00abboolean \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 1 \u0431\u0438\u0442\u00bb \u043d\u0435\u0432\u0435\u0440\u043d\u043e, \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u0430\u0439\u0442 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u043f\u043e\u043b\u044f\u0445. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u044f\u043c \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044f\u0432\u043d\u043e.<\/p>\n<h2 id=\"s2\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440: \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b<\/h2>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">CharBasics<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">letter<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'A'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">fromCode<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1071<\/span><span style=\"color: #ABB2BF\">;          <\/span><span style=\"color: #7F848E\">\/\/ \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 U+042F<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">fromEscape<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'\\u042F'<\/span><span style=\"color: #ABB2BF\">;    <\/span><span style=\"color: #7F848E\">\/\/ \u0442\u0430 \u0436\u0435 \u0431\u0443\u043a\u0432\u0430 \u0447\u0435\u0440\u0435\u0437 Unicode-\u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">tab<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'\\t'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">letter<\/span><span style=\"color: #ABB2BF\">);                 <\/span><span style=\"color: #7F848E\">\/\/ \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0438\u043c\u0432\u043e\u043b<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">letter<\/span><span style=\"color: #ABB2BF\">);           <\/span><span style=\"color: #7F848E\">\/\/ \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">fromCode<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">fromEscape<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">fromCode<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">==<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">fromEscape<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"[\"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">tab<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"]\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">next<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">letter<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">next<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;                                     <\/span><span style=\"color: #7F848E\">\/\/ ++ \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 char<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">next<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">MIN_VALUE<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"..\"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">MAX_VALUE<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">SIZE<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" bit, \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">BYTES<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" bytes\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434 \u043f\u0440\u043e\u0433\u043e\u043d\u0430:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">A\n65\n\u042f \u042f\ntrue\n[   ]\nB\n0..65535\n16 bit, 2 bytes\n<\/code><\/pre>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 <strong>\u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0445<\/strong> \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'A'<\/code>. \u0414\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0434\u0430\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">String<\/code>, \u0430 \u043d\u0435 char.<\/li>\n<li>char \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u043c (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">1071<\/code>), \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 0..65535. \u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u043b\u0438 65536 \u043d\u0435 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/li>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">println(char)<\/code> \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b, \u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">(int) letter<\/code> &#8212; \u0435\u0433\u043e \u043a\u043e\u0434. \u0425\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0447\u0438\u0441\u043b\u043e, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u0432\u043e\u0434\u0430.<\/li>\n<li>\u041a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430: \u0432 Linux-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0432\u044b\u0432\u0435\u043b\u043e\u0441\u044c \u00ab\u042f\u00bb, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 Windows \u0441\u043e \u0441\u0442\u0430\u0440\u043e\u0439 \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438.<\/li>\n<\/ul>\n<h3>\u042d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u0417\u0430\u043f\u0438\u0441\u044c<\/th>\n<th>\u0421\u0438\u043c\u0432\u043e\u043b<\/th>\n<th>\u041a\u043e\u0434<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\n'<\/code><\/td>\n<td>\u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\t'<\/code><\/td>\n<td>\u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\''<\/code><\/td>\n<td>\u043e\u0434\u0438\u043d\u0430\u0440\u043d\u0430\u044f \u043a\u0430\u0432\u044b\u0447\u043a\u0430<\/td>\n<td>39<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\\\'<\/code><\/td>\n<td>\u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u043b\u0435\u0448<\/td>\n<td>92<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\u0041'<\/code><\/td>\n<td>\u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443<\/td>\n<td>65 (A)<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\101'<\/code><\/td>\n<td>\u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c, \u043e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\0<\/code> \u0434\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\377<\/code><\/td>\n<td>65 (A)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"s3\">\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char: \u043f\u043e\u0447\u0435\u043c\u0443 &#8216;a&#8217; + &#8216;b&#8217; = 195<\/h2>\n<p>char &#8212; \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0442\u0438\u043f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c. \u041d\u043e \u0432 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 char \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e int, \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 &#8212; \u0442\u043e\u0436\u0435 int.<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">CharArithmetic<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'a'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'b'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">);          <\/span><span style=\"color: #7F848E\">\/\/ \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u043e\u0432, \u0442\u0438\u043f int<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"\"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">);     <\/span><span style=\"color: #7F848E\">\/\/ \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">);          <\/span><span style=\"color: #7F848E\">\/\/ int<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\">) (<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">)); <\/span><span style=\"color: #7F848E\">\/\/ \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043a char<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'x'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">2<\/span><span style=\"color: #ABB2BF\">;                             <\/span><span style=\"color: #7F848E\">\/\/ \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0441\u0430\u043c\u043e<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">digit<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'7'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">digit<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'0'<\/span><span style=\"color: #ABB2BF\">);                    <\/span><span style=\"color: #7F848E\">\/\/ 7<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">getNumericValue<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">digit<\/span><span style=\"color: #ABB2BF\">)); <\/span><span style=\"color: #7F848E\">\/\/ 7<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">digit<\/span><span style=\"color: #ABB2BF\">);                    <\/span><span style=\"color: #7F848E\">\/\/ 55 - \u043a\u043e\u0434, \u0430 \u043d\u0435 \u0446\u0438\u0444\u0440\u0430<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">195\nab\n98\nb\nz\n7\n7\n55\n<\/code><\/pre>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'a' + 'b'<\/code> \u0434\u0430\u0435\u0442 97 + 98 = 195, \u0430 \u043d\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u00abab\u00bb. \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043b\u0435\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">(int) '7'<\/code> \u0434\u0430\u0435\u0442 \u043a\u043e\u0434 55, \u0430 \u043d\u0435 \u0446\u0438\u0444\u0440\u0443 7: \u0434\u043b\u044f \u0446\u0438\u0444\u0440\u044b \u0432\u044b\u0447\u0438\u0442\u0430\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'0'<\/code> \u0438\u043b\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character.getNumericValue<\/code>.<\/p>\n<h3>\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: c = c + 1<\/h3>\n<p>\u041d\u0435\u0432\u0435\u0440\u043d\u043e:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">CharError<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'a'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 &#8212; javac \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">CharError.java:4: error: incompatible types: possible lossy conversion from int to char\n        c = c + 1;\n              ^\n1 error\n<\/code><\/pre>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c + 1<\/code> \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f int, \u0430 \u043d\u0435\u044f\u0432\u043d\u043e \u0441\u0443\u0437\u0438\u0442\u044c int \u0434\u043e char \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c = (char) (c + 1);<\/code> \u043b\u0438\u0431\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c += 1;<\/code> \u0438\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c++<\/code>. \u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0434\u0435\u043b\u0430\u044e\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c += 2<\/code> \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b.<\/p>\n<h3>\u041b\u043e\u0432\u0443\u0448\u043a\u0430: \\u \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\u<\/code> javac \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0435\u0449\u0435 \u0434\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043a\u043e\u0434\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\u000a<\/code> \u043b\u043e\u043c\u0430\u0435\u0442 \u043b\u0438\u0442\u0435\u0440\u0430\u043b:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">Escape<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">nl<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">'\\u000a'<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">nl<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">Escape.java:3: error: illegal line end in character literal\n        char nl = &#x27;\\u000a&#x27;;\n                  ^\n1 error\n<\/code><\/pre>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0438\u0441\u0430\u0442\u044c <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\n'<\/code>, \u0434\u043b\u044f \u043a\u043e\u0434\u0430 10 &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">(char) 10<\/code>. \u0422\u043e \u0436\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\u000d<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\u0027<\/code> (\u043e\u0434\u0438\u043d\u0430\u0440\u043d\u0430\u044f \u043a\u0430\u0432\u044b\u0447\u043a\u0430).<\/p>\n<h2 id=\"s4\">\u0421\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b: \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d char &#8212; \u043d\u0435 \u0441\u0438\u043c\u0432\u043e\u043b<\/h2>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432 Java 1.0 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f char, Unicode \u0443\u043c\u0435\u0449\u0430\u043b\u0441\u044f \u0432 16 \u0431\u0438\u0442. \u041f\u043e\u0437\u0436\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u0438 \u0434\u043e U+10FFFF, \u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 U+FFFF (\u044d\u043c\u043e\u0434\u0437\u0438, \u0447\u0430\u0441\u0442\u044c \u0438\u0435\u0440\u043e\u0433\u043b\u0438\u0444\u043e\u0432, \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u043e\u0441\u0442\u0438) \u0441\u0442\u0430\u043b\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 UTF-16 <strong>\u0434\u0432\u0443\u043c\u044f<\/strong> char: \u0441\u0442\u0430\u0440\u0448\u0438\u043c \u0438 \u043c\u043b\u0430\u0434\u0448\u0438\u043c \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043e\u043c. \u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435: \ud83d\ude00 -&gt; \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430 U+1F600 -&gt; \u043a\u043e\u0434\u043e\u0432\u044b\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b D83D DE00.<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">Surrogates<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"Hi \\uD83D\\uDE00\"<\/span><span style=\"color: #ABB2BF\">;                    <\/span><span style=\"color: #7F848E\">\/\/ \"Hi \" + \u044d\u043c\u043e\u0434\u0437\u0438 U+1F600<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">length<\/span><span style=\"color: #ABB2BF\">());                        <\/span><span style=\"color: #7F848E\">\/\/ \u043a\u043e\u0434\u043e\u0432\u044b\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b UTF-16<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">codePointCount<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">length<\/span><span style=\"color: #ABB2BF\">()));   <\/span><span style=\"color: #7F848E\">\/\/ \u043a\u043e\u0434\u043e\u0432\u044b\u0435 \u0442\u043e\u0447\u043a\u0438<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">unit<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">charAt<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">);                               <\/span><span style=\"color: #7F848E\">\/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u044d\u043c\u043e\u0434\u0437\u0438<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">printf<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"U+%04X high=%b%n\"<\/span><span style=\"color: #ABB2BF\">, (<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">unit<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isHighSurrogate<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">unit<\/span><span style=\"color: #ABB2BF\">));<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">cp<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">codePointAt<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">);                             <\/span><span style=\"color: #7F848E\">\/\/ \u0446\u0435\u043b\u0430\u044f \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">printf<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"U+%X, charCount=%d%n\"<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">cp<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">charCount<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">cp<\/span><span style=\"color: #ABB2BF\">));<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #7F848E\">\/\/ \u041d\u0435\u0432\u0435\u0440\u043d\u043e: \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e char \u0440\u0432\u0435\u0442 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">StringBuilder<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">naive<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">StringBuilder<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">for<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">length<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">&gt;=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #56B6C2\">--<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #E06C75\">naive<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">append<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">charAt<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">naive<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">chars<\/span><span style=\"color: #ABB2BF\">().<\/span><span style=\"color: #E06C75\">forEach<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">u<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">-&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">printf<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"%04X \"<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">u<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">();<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #7F848E\">\/\/ \u0412\u0435\u0440\u043d\u043e: StringBuilder.reverse() \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u044b<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">StringBuilder<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">).<\/span><span style=\"color: #E06C75\">reverse<\/span><span style=\"color: #ABB2BF\">().<\/span><span style=\"color: #E06C75\">codePoints<\/span><span style=\"color: #ABB2BF\">()<\/span>\n<span style=\"color: #ABB2BF\">            .<\/span><span style=\"color: #E06C75\">forEach<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">p<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">-&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">printf<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"U+%04X \"<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">p<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">();<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">toChars<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">0x1F600<\/span><span style=\"color: #ABB2BF\">)).<\/span><span style=\"color: #E06C75\">equals<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">s<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">substring<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">)));<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">5\n4\nU+D83D high=true\nU+1F600, charCount=2\nDE00 D83D 0020 0069 0048 \nU+1F600 U+0020 U+0069 U+0048 \ntrue\n<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0431\u043e\u0440:<\/p>\n<ul>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">length()<\/code> \u0432\u0435\u0440\u043d\u0443\u043b 5, \u0445\u043e\u0442\u044f \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0447\u0435\u0442\u044b\u0440\u0435: \u0441\u043c\u0430\u0439\u043b\u0438\u043a \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0435 \u043a\u043e\u0434\u043e\u0432\u044b\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b.<\/li>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">charAt(3)<\/code> \u0432\u0435\u0440\u043d\u0443\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442 D83D &#8212; \u044d\u0442\u043e \u043d\u0435 \u0441\u0438\u043c\u0432\u043e\u043b, \u0430 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043f\u0430\u0440\u044b.<\/li>\n<li>\u0420\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u043f\u043e char \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b DE00 \u043f\u0435\u0440\u0435\u0434 D83D. \u0422\u0430\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0436\u0435 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 UTF-16, \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u0430 \u0431\u0443\u0434\u0443\u0442 \u0437\u043d\u0430\u043a\u0438 \u0437\u0430\u043c\u0435\u043d\u044b.<\/li>\n<li>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u043e\u043b\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">int<\/code> \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePoint<\/code> \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePointAt<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePointCount<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePoints()<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character.toChars<\/code>.<\/li>\n<\/ul>\n<p>\u0413\u0440\u0430\u043d\u0438\u0446\u0430 \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438: \u0438 \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u0430 \u0432\u0438\u0434\u0438\u043c\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443. \u0424\u043b\u0430\u0433\u0438, \u044d\u043c\u043e\u0434\u0437\u0438 \u0441 \u043e\u0442\u0442\u0435\u043d\u043a\u043e\u043c \u043a\u043e\u0436\u0438 \u0438 \u0431\u0443\u043a\u0432\u044b \u0441 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u0434\u0438\u0430\u043a\u0440\u0438\u0442\u0438\u043a\u0430\u043c\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0444\u043b\u0430\u0433 \u0420\u043e\u0441\u0441\u0438\u0438 &#8212; \u044d\u0442\u043e 4 char, 2 \u043a\u043e\u0434\u043e\u0432\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0438 1 \u0433\u0440\u0430\u0444\u0435\u043c\u0430. \u0414\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0435\u043c\u044b \u0432 JDK \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\X<\/code> \u0432 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Pattern.compile(\"\\\\X\")<\/code> \u043d\u0430\u0448\u0435\u043b \u0432 \u0444\u043b\u0430\u0433\u0435 \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435) \u0438 \u043a\u043b\u0430\u0441\u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">java.text.BreakIterator<\/code>.<\/p>\n<h2 id=\"s5\">\u041a\u043b\u0430\u0441\u0441 Character: \u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b<\/h2>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character<\/code> &#8212; \u043a\u043b\u0430\u0441\u0441-\u043e\u0431\u0435\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 char. \u041e\u043d \u043d\u0443\u0436\u0435\u043d \u0442\u0430\u043c, \u0433\u0434\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442: \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u0445 (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">List&lt;Character&gt;<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Map&lt;Character, Integer&gt;<\/code>), \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 null. \u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 char \u0438 Character \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0430\u043c (\u0430\u0432\u0442\u043e\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0430), \u043c\u0435\u0442\u043e\u0434 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">charValue()<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432 \u044f\u0432\u043d\u043e.<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span> <span style=\"color: #E5C07B\">CharMethods<\/span><span style=\"color: #ABB2BF\"> {<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">main<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #56B6C2\">[]<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">args<\/span><span style=\"color: #ABB2BF\">) {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">String<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">input<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"Otus 2026, Java!\"<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">letters<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">digits<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">spaces<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">for<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E5C07B\">char<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">ch<\/span><span style=\"color: #ABB2BF\"> : <\/span><span style=\"color: #E06C75\">input<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">toCharArray<\/span><span style=\"color: #ABB2BF\">()) {<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">if<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isLetter<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">ch<\/span><span style=\"color: #ABB2BF\">)) <\/span><span style=\"color: #E06C75\">letters<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">else<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">if<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isDigit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">ch<\/span><span style=\"color: #ABB2BF\">)) <\/span><span style=\"color: #E06C75\">digits<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">else<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">if<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isWhitespace<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">ch<\/span><span style=\"color: #ABB2BF\">)) <\/span><span style=\"color: #E06C75\">spaces<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">else<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        }<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">letters<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">digits<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">spaces<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">toUpperCase<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">'\u044f'<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isLetter<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">'\u042f'<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\" \"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isDigit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">'\u0663'<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">getNumericValue<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">'\u0663'<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">isLetter<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">0x1F600<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">System<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">out<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">println<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Character<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">getName<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">'\u042f'<\/span><span style=\"color: #ABB2BF\">));<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">8 4 2 2\n\u042f\ntrue true\n3\nfalse\nCYRILLIC CAPITAL LETTER YA\n<\/code><\/pre>\n<p>\u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u0430\u0448\u0435\u043b 8 \u0431\u0443\u043a\u0432, 4 \u0446\u0438\u0444\u0440\u044b, 2 \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0438 2 \u043f\u0440\u043e\u0447\u0438\u0445 \u0437\u043d\u0430\u043a\u0430 (\u0437\u0430\u043f\u044f\u0442\u0443\u044e \u0438 \u0432\u043e\u0441\u043a\u043b\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439). \u041b\u0438\u0442\u0435\u0440\u0430\u043b <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\u044f'<\/code> \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b \u0447\u0438\u0442\u0430\u043b\u0441\u044f \u0432 UTF-8: \u044d\u0442\u043e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Java 18, \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 JDK \u043d\u0443\u0436\u0435\u043d \u0444\u043b\u0430\u0433 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">javac -encoding UTF-8<\/code>.<\/p>\n<table>\n<thead>\n<tr>\n<th>\u041c\u0435\u0442\u043e\u0434<\/th>\n<th>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442<\/th>\n<th>\u041d\u0430 \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isLetter<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isDigit<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isWhitespace<\/code><\/td>\n<td>\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/td>\n<td>\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u043e Unicode, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e ASCII<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">toUpperCase<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">toLowerCase<\/code><\/td>\n<td>\u043c\u0435\u043d\u044f\u044e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/td>\n<td>\u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0430 &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">String.toUpperCase(Locale)<\/code><\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">getNumericValue<\/code><\/td>\n<td>\u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b<\/td>\n<td>\u0434\u043b\u044f \u0431\u0443\u043a\u0432 \u0438 \u0440\u0438\u043c\u0441\u043a\u0438\u0445 \u0446\u0438\u0444\u0440 \u0442\u043e\u0436\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0438\u0441\u043b\u0430<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isHighSurrogate<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">charCount<\/code><\/td>\n<td>\u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0438<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">charCount<\/code> = 2 \u0434\u043b\u044f \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u0432\u044b\u0448\u0435 U+FFFF<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">toChars<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">getName<\/code><\/td>\n<td>\u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430 -&gt; char[] \u0438 \u0438\u043c\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/td>\n<td>\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 int, \u0430 \u043d\u0435 char<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isDigit('\u0663')<\/code>: \u0430\u0440\u0430\u0431\u0441\u043a\u043e-\u0438\u043d\u0434\u0438\u0439\u0441\u043a\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0442\u0440\u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0439. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u043c\u0435\u043d\u043d\u043e ASCII-\u0446\u0438\u0444\u0440 (\u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043a\u043e\u0434 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f), \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">ch &gt;= '0' &amp;&amp; ch &lt;= '9'<\/code>.<\/p>\n<h2 id=\"s6\">\u041a\u043e\u0433\u0434\u0430 \u0431\u0440\u0430\u0442\u044c char, \u0430 \u043a\u043e\u0433\u0434\u0430 String \u0438\u043b\u0438 int<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u0417\u0430\u0434\u0430\u0447\u0430<\/th>\n<th>\u0427\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/th>\n<th>\u041f\u043e\u0447\u0435\u043c\u0443<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u043e\u0434\u0438\u043d \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b: \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u0444\u043b\u0430\u0433, \u043a\u043b\u0430\u0432\u0438\u0448\u0430<\/td>\n<td>char<\/td>\n<td>\u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">==<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u0442\u0435\u043a\u0441\u0442 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438\u043c\u0435\u043d\u0430, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/td>\n<td>String<\/td>\n<td>\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u044d\u043c\u043e\u0434\u0437\u0438 \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b<\/td>\n<\/tr>\n<tr>\n<td>\u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u044d\u043c\u043e\u0434\u0437\u0438<\/td>\n<td>int \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePoints()<\/code><\/td>\n<td>char \u0432\u0438\u0434\u0438\u0442 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043a\u0438 \u043f\u0430\u0440<\/td>\n<\/tr>\n<tr>\n<td>\u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Map&lt;Character, Integer&gt;<\/code> \u0438\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Map&lt;Integer, Integer&gt;<\/code> \u043f\u043e \u043a\u043e\u0434\u043e\u0432\u044b\u043c \u0442\u043e\u0447\u043a\u0430\u043c<\/td>\n<td>\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0445\u0440\u0430\u043d\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u044b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"s7\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<ul>\n<li>char &#8212; 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0442\u0438\u043f (0..65535), \u0445\u0440\u0430\u043d\u0438\u0442 \u043e\u0434\u043d\u0443 \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UTF-16, \u0430 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043b\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b.<\/li>\n<li>\u0412 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0435 char \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e int: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'a' + 'b'<\/code> = 195, \u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c = c + 1<\/code> \u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c++<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">c += 1<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/li>\n<li>\u0421\u0438\u043c\u0432\u043e\u043b\u044b \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 U+FFFF, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044d\u043c\u043e\u0434\u0437\u0438, \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u0434\u0432\u0430 char (\u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443); \u0434\u043b\u044f \u043d\u0438\u0445 \u043d\u0443\u0436\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">codePoint<\/code>.<\/li>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\\u<\/code>-\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\u000a'<\/code> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">'\\n'<\/code>.<\/li>\n<li>\u041a\u043b\u0430\u0441\u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character<\/code> \u0434\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e Unicode; \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 ASCII-\u0446\u0438\u0444\u0440 \u043d\u0443\u0436\u0435\u043d \u044f\u0432\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d.<\/li>\n<\/ul>\n<h2 id=\"s8\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/h2>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 char \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0441\u0435\u0440\u0430\u0445 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440\u0430\u0445 \u0432\u0432\u043e\u0434\u0430, \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0435 \u0447\u0430\u0441\u0442\u043e\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0432 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445 (\u043f\u0430\u043b\u0438\u043d\u0434\u0440\u043e\u043c\u044b, \u0430\u043d\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u0441\u0442\u0440\u043e\u043a\u0438). \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0442 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 \u043d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0434\u043e int.<\/p>\n<div class=\"oj-cta\" style=\"background:#fbf4e4;border-left:4px solid #c9962b;border-radius:8px;padding:16px 20px;margin:24px 0\">\n<p style=\"margin:0 0 8px\"><strong>\u041e\u0441\u0432\u043e\u0439\u0442\u0435 \u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0438 \u041e\u041e\u041f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043a\u043e\u0434\u0430 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u0443\u0440\u0441 <a href=\"https:\/\/otus.ru\/lessons\/java-basic\/?int_article=vse-o-peremennyh-v-dzhave-tip-char&amp;int_place=article&amp;int_variant=v1\">Java Developer. Basic<\/a>. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/otus.ru\/events\/?int_article=vse-o-peremennyh-v-dzhave-tip-char&amp;int_place=article&amp;int_variant=v1\">\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u0440\u043e\u043a\u0430\u0445 Otus<\/a>.<\/p>\n<\/div>\n<h2 id=\"s9\">FAQ<\/h2>\n<p><strong>\u0427\u0435\u043c char \u0432 Java \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 char \u0432 C?<\/strong><br \/>\n\u0412 C char \u043e\u0431\u044b\u0447\u043d\u043e 8 \u0431\u0438\u0442 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0438\u043b\u0438 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0430 \u0432 Java char \u0432\u0441\u0435\u0433\u0434\u0430 16 \u0431\u0438\u0442 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UTF-16.<\/p>\n<p><strong>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c char \u0447\u0435\u0440\u0435\u0437 ==?<\/strong><br \/>\n\u0414\u0430, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0430 char <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">==<\/code> \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u0434\u044b. \u0414\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Character<\/code> \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">equals<\/code> \u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0432 char, \u0438\u043d\u0430\u0447\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p><strong>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c char \u0432 switch?<\/strong><br \/>\n\u0414\u0430, char \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">switch<\/code> \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 int \u0438 String, \u043c\u0435\u0442\u043a\u0438 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430\u043c\u0438 \u0432\u0438\u0434\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">case 'a' -&gt;<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>char \u0432 Java &#8212; \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0438\u043f \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 16 \u0431\u0438\u0442 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u043e\u0434\u043d\u0443 \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443 UTF-16, \u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043e\u0442 0 \u0434\u043e 65535. \u0414\u043b\u044f \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u044b \u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b \u043e\u0434\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c, \u043d\u043e \u0434\u043b\u044f \u044d\u043c\u043e\u0434\u0437\u0438 \u0438 \u0447\u0430\u0441\u0442\u0438 \u0440\u0435\u0434\u043a\u0438\u0445 \u0438\u0435\u0440\u043e\u0433\u043b\u0438\u0444\u043e\u0432 \u0441\u0438\u043c\u0432\u043e\u043b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 char. \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u041c\u0435\u0441\u0442\u043e char \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440: \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":2651,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[75],"class_list":["post-2633","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-polza","tag-java"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u0438\u043f char \u0432 Java: 16 \u0431\u0438\u0442, \u043a\u043e\u0434 UTF-16, \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0438 \\u, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char, \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 codePoint, \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 Character. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Java 25.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"A. Pavlenko\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#article\",\"name\":\"\\u0422\\u0438\\u043f char \\u0432 Java: \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\\u044b, Unicode \\u0438 \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b | Otus\",\"headline\":\"\\u0422\\u0438\\u043f char \\u0432 Java: \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\\u044b, \\u043a\\u043e\\u0434\\u044b Unicode \\u0438 \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b\",\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/oj-1080x720-8.png\",\"width\":1080,\"height\":720},\"datePublished\":\"2026-09-23T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:35:08+00:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#webpage\"},\"articleSection\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435, Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"position\":2,\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#listItem\",\"name\":\"\\u0422\\u0438\\u043f char \\u0432 Java: \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\\u044b, \\u043a\\u043e\\u0434\\u044b Unicode \\u0438 \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#listItem\",\"position\":3,\"name\":\"\\u0422\\u0438\\u043f char \\u0432 Java: \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\\u044b, \\u043a\\u043e\\u0434\\u044b Unicode \\u0438 \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\",\"name\":\"\\u041e\\u0442\\u0443\\u0441 \\u043e\\u043d\\u043b\\u0430\\u0439\\u043d-\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"telephone\":\"+74999389202\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/OTUS-journal-logo-180x180-1.png\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#organizationLogo\",\"width\":180,\"height\":180},\"image\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCetgtvy93o3i3CvyGXKFU3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/\",\"name\":\"A. Pavlenko\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"A. Pavlenko\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#webpage\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/\",\"name\":\"\\u0422\\u0438\\u043f char \\u0432 Java: \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\\u044b, Unicode \\u0438 \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b | Otus\",\"description\":\"\\u0427\\u0442\\u043e \\u0445\\u0440\\u0430\\u043d\\u0438\\u0442 \\u0442\\u0438\\u043f char \\u0432 Java: 16 \\u0431\\u0438\\u0442, \\u043a\\u043e\\u0434 UTF-16, \\u043b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b\\u044b \\u0438 \\\\u, \\u0430\\u0440\\u0438\\u0444\\u043c\\u0435\\u0442\\u0438\\u043a\\u0430 \\u0441 char, \\u0441\\u0443\\u0440\\u0440\\u043e\\u0433\\u0430\\u0442\\u043d\\u044b\\u0435 \\u043f\\u0430\\u0440\\u044b \\u0438 codePoint, \\u043c\\u0435\\u0442\\u043e\\u0434\\u044b \\u043a\\u043b\\u0430\\u0441\\u0441\\u0430 Character. \\u041f\\u0440\\u0438\\u043c\\u0435\\u0440\\u044b \\u043f\\u0440\\u043e\\u0432\\u0435\\u0440\\u0435\\u043d\\u044b \\u043d\\u0430 Java 25.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/oj-1080x720-8.png\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#mainImage\",\"width\":1080,\"height\":720},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/vse-o-peremennyh-v-dzhave-tip-char\\\/#mainImage\"},\"datePublished\":\"2026-09-23T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:35:08+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"name\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b - \\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"alternateName\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b | Otus","description":"\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u0438\u043f char \u0432 Java: 16 \u0431\u0438\u0442, \u043a\u043e\u0434 UTF-16, \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0438 \\u, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char, \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 codePoint, \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 Character. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Java 25.","canonical_url":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#article","name":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b | Otus","headline":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b","author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2022\/01\/oj-1080x720-8.png","width":1080,"height":720},"datePublished":"2026-09-23T09:00:00+00:00","dateModified":"2026-09-25T15:35:08+00:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#webpage"},"isPartOf":{"@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#webpage"},"articleSection":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435, Java"},{"@type":"BreadcrumbList","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","position":1,"name":"Home","item":"https:\/\/otus.ru\/journal\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","position":2,"name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","item":"https:\/\/otus.ru\/journal\/category\/polza\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#listItem","name":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b"},"previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#listItem","position":3,"name":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b","previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}}]},{"@type":"Organization","@id":"https:\/\/otus.ru\/journal\/#organization","name":"\u041e\u0442\u0443\u0441 \u043e\u043d\u043b\u0430\u0439\u043d-\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","url":"https:\/\/otus.ru\/journal\/","telephone":"+74999389202","logo":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2026\/04\/OTUS-journal-logo-180x180-1.png","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#organizationLogo","width":180,"height":180},"image":{"@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#organizationLogo"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCetgtvy93o3i3CvyGXKFU3g"]},{"@type":"Person","@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author","url":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/","name":"A. Pavlenko","image":{"@type":"ImageObject","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g","width":96,"height":96,"caption":"A. Pavlenko"}},{"@type":"WebPage","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#webpage","url":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/","name":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b | Otus","description":"\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u0438\u043f char \u0432 Java: 16 \u0431\u0438\u0442, \u043a\u043e\u0434 UTF-16, \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0438 \\u, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char, \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 codePoint, \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 Character. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Java 25.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/otus.ru\/journal\/#website"},"breadcrumb":{"@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#breadcrumblist"},"author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"creator":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2022\/01\/oj-1080x720-8.png","@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#mainImage","width":1080,"height":720},"primaryImageOfPage":{"@id":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/#mainImage"},"datePublished":"2026-09-23T09:00:00+00:00","dateModified":"2026-09-25T15:35:08+00:00"},{"@type":"WebSite","@id":"https:\/\/otus.ru\/journal\/#website","url":"https:\/\/otus.ru\/journal\/","name":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b - \u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","alternateName":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"}}]}},"aioseo_meta_data":{"post_id":"2633","title":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b | Otus","description":"\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u0438\u043f char \u0432 Java: 16 \u0431\u0438\u0442, \u043a\u043e\u0434 UTF-16, \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0438 \\u, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441 char, \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 codePoint, \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 Character. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Java 25.","keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"aioseo-article-6363a198d9a05","slug":"article","graphName":"Article","label":"\u0421\u0442\u0430\u0442\u044c\u044f","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":{"businessInfo":{"name":"","urls":{"website":"","aboutPage":"","contactPage":""},"address":{"line1":"","line2":"","zip":"","city":"","state":"","country":""},"contact":{"email":"","phone":"","fax":""},"ids":{"vatID":"","taxID":"","chamberID":""},"payment":{"priceIndication":"","currenciesAccepted":"","methodsAccepted":""},"areaServed":""},"openingHours":{"show":false,"closedLabel":"","open24h":false,"open24hLabel":"","open247":false,"use24hFormat":false,"twoSets":false,"timezone":"","hours":[]}},"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-01-10 20:33:41","updated":"2026-09-25 17:21:58","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/category\/polza\/\" title=\"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435\">\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/otus.ru\/journal\/"},{"label":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","link":"https:\/\/otus.ru\/journal\/category\/polza\/"},{"label":"\u0422\u0438\u043f char \u0432 Java: \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u044b Unicode \u0438 \u0441\u0443\u0440\u0440\u043e\u0433\u0430\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b","link":"https:\/\/otus.ru\/journal\/vse-o-peremennyh-v-dzhave-tip-char\/"}],"_links":{"self":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/2633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/comments?post=2633"}],"version-history":[{"count":3,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/2633\/revisions"}],"predecessor-version":[{"id":13067,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/2633\/revisions\/13067"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media\/2651"}],"wp:attachment":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/categories?post=2633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/tags?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}