{"id":2459,"date":"2017-07-03T14:21:37","date_gmt":"2017-07-03T11:21:37","guid":{"rendered":"http:\/\/java.mazurok.com\/?p=2459"},"modified":"2017-07-05T00:03:28","modified_gmt":"2017-07-04T21:03:28","slug":"%d0%b0%d0%b014","status":"publish","type":"post","link":"https:\/\/java.mazurok.com\/?p=2459","title":{"rendered":"\u0410\u041014"},"content":{"rendered":"<h3><strong>\u0417\u0430\u0434\u0430\u0447\u0430<\/strong><\/h3>\n<p>\u0412 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b &#8216; . &#8216;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435.<\/p>\n<h3><strong>\u0422\u0435\u0441\u0442\u044b<\/strong><\/h3>\n<table style=\"height: 130px;width: 370px\">\n<tbody>\n<tr>\n<td style=\"width: 23px\">\u2116<\/td>\n<td style=\"width: 147px;text-align: center\">\u0412\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/td>\n<td style=\"width: 194px;text-align: center\">\u0421\u0442\u0440\u043e\u043a\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23px\">\u00a01<\/td>\n<td style=\"width: 147px;text-align: center\">22.11.11<\/td>\n<td style=\"width: 194px;text-align: center\">2211.11<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23px\">\u00a02<\/td>\n<td style=\"width: 147px;text-align: center\">java.mazurok.com<\/td>\n<td style=\"width: 194px;text-align: center\">javamazurok.com<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 23px\">\u00a03<\/td>\n<td style=\"width: 147px;text-align: center\">Suspect<\/td>\n<td style=\"width: 194px;text-align: center\">The dot was not found.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/h3>\n<pre class=\"lang:java decode:true\">class StringLab\r\n{\r\n\tpublic static void main (String[] args) throws java.lang.Exception\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString mainString;\r\n\t\t\r\n\t\tmainString = input.next();\r\n\t\tStringBuilder changedString = new StringBuilder(mainString);\r\n\t\t\r\n\t\tint dotIndex = changedString.indexOf(\".\");\r\n\t\t\r\n\t\tif (dotIndex == -1) System.out.println(\"The dot was not found.\"); \r\n\t\telse \r\n\t\t{\r\n\t\t\tchangedString.deleteCharAt(dotIndex);\r\n\t\t\tSystem.out.println(changedString);\r\n\t\t}\r\n\t}\r\n}<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 &#8212; <a href=\"http:\/\/ideone.com\/VikNps\">Ideone<\/a>.<\/p>\n<h3><strong>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f<\/strong><\/h3>\n<p>\u0414\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">mainString<\/span>\u00a0, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u043e\u0431\u0435\u0440\u0442\u043a\u0443\u00a0<span class=\"lang:java decode:true crayon-inline\">StringBuilder<\/span>. \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043a\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u00a0<span class=\"lang:java decode:true crayon-inline \">dotIndex<\/span>\u00a0, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u043d\u0430\u0448\u043b\u0430 \u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<span class=\"lang:java decode:true crayon-inline \">indexOf()<\/span>\u00a0 \u0442\u043e\u0447\u043a\u0443 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0418\u043d\u0430\u0447\u0435 \u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<span class=\"lang:java decode:true crayon-inline \">deleteCharAt()<\/span>\u00a0\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0412 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b &#8216; . &#8216;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. \u0422\u0435\u0441\u0442\u044b \u2116 \u0412\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0421\u0442\u0440\u043e\u043a\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u00a01 22.11.11 2211.11 \u00a02 java.mazurok.com javamazurok.com \u00a03 Suspect The dot was not found. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 class StringLab { public static void main (String[] args) throws java.lang.Exception { Scanner input = new Scanner(System.in); String mainString; mainString &hellip; <a href=\"https:\/\/java.mazurok.com\/?p=2459\" class=\"more-link\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":93,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[41,257,255,151,256],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2459"}],"collection":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2459"}],"version-history":[{"count":7,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2459\/revisions"}],"predecessor-version":[{"id":2467,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=\/wp\/v2\/posts\/2459\/revisions\/2467"}],"wp:attachment":[{"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/java.mazurok.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}